Post

Replies

Boosts

Views

Activity

Comment on Issue with pre-compiling Applescript in Swift 5
I tried this approach but the "tell te" doesn't activate the app in my case. Even if it's running. I confirmed that the process name for the app is "Microsoft Remote Desktop". I can activate using tell application "Microsoft Remote Desktop" but not by assigning the process name to the variable and calling; tell application "Microsoft Remote Desktop" activate works set rdp to application process "Microsoft Remote Desktop" tell rdp activate doesn't.
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’23
Comment on Illegal NSComboBox Data source Swift 5 Storyboard
@Claude31 So I didn't need the call to the numberOfItems and comboBox as they populate from the "dataSource" in the comboBox function on their own. I added three more NSComboBoxes (They all load value from same source) and they all populated without doing anything other than setting the dataSource and delegate to self for all in the ViewDidLoad(). Is this an OK way of populating the NSComboBoxes? What would I do if I needed to populate different comboboxes with different values?
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’23
Comment on Issue with pre-compiling Applescript in Swift 5
Thanks for the response. I will look into both. I'm not quite sure what you mean by the "terminology from Microsoft Remote Desktop App" but I need to conditionally change focus if the Microsoft Remote Desktop App is in focus so I will need to check if the set the to application process "xxx" has a return value.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22
Comment on Issue with pre-compiling Applescript in Swift 5
I tried this approach but the "tell te" doesn't activate the app in my case. Even if it's running. I confirmed that the process name for the app is "Microsoft Remote Desktop". I can activate using tell application "Microsoft Remote Desktop" but not by assigning the process name to the variable and calling; tell application "Microsoft Remote Desktop" activate works set rdp to application process "Microsoft Remote Desktop" tell rdp activate doesn't.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’23
Comment on Issue with pre-compiling Applescript in Swift 5
I also tried the exporting as application approach but when I run the application, I get an error saying it can't send keystokes so that may not work either.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’23
Comment on How to programatically call a Segue on an NSMenu object?
I did end up doing it that way. I just wanted to try and be consistent in the way I'm launching it.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’23
Comment on Illegal NSComboBox Data source Swift 5 Storyboard
@Claude31 So I didn't need the call to the numberOfItems and comboBox as they populate from the "dataSource" in the comboBox function on their own. I added three more NSComboBoxes (They all load value from same source) and they all populated without doing anything other than setting the dataSource and delegate to self for all in the ViewDidLoad(). Is this an OK way of populating the NSComboBoxes? What would I do if I needed to populate different comboboxes with different values?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’23