I ceased software development many months ago now, and am therefore having trouble getting my app to do something simple - such as executing a different OS X app which is in the Applications folder.
Here is my code:
Dim sh As New Shell
Is my path incorrect, or is this the wrong way to execute another app?
Thank you all in advance
Thats the error code?
You can also use a folderitem and .Launch
There is no error code, and it compiles fine - just nothing happens when I click on the button
I also tried this:
Dim f As FolderItem = SpecialFolder.Applications.Child("MyApp.app")
This also compiles fine - but does absolutely nothing
Thats strange. That works here with the Twitter app:
Dim f As FolderItem = SpecialFolder.Applications.Child("Twitter.app")
Albin - how would I path to an app which is in a folder, inside the applications folder?
My brain has completely switched off with regards to Xojo
Example - if the app I need to execute is in:
I tried this - with the same result:
Dim f As FolderItem = SpecialFolder.Applications.Child("MyApp").Child("MyApp.app")
Isn’t it something like SpecialFolder.Applications.Child(“MyApp”).Child(“MyApp.app”)
I forgot to substitute “MyApp” with the real name of my app!!!