Post

Replies

Boosts

Views

Activity

AppleScript App (Xcode) "cannot open files of this type"
This is a newbie question:I've created an AppleScript App in Xcode which is a simple wrapper that takes command line arguments and calls another application. The part I'm struggling with is that I also want users to be able to double-click a file on their Desktop (or select Open with) and have the selected file be input to my AppleScript App. But when invoking the application this way, the file does not come into my AppleScript App as one of the command line arguments and I also get the error message saying:The document "ut33p23.hod" could not be opened. <MyApplicationName> cannot open files of this type."ut33p23.hod is the file I try to open with my app.I have entered the UTI and Document Type in the Info.plist so that my application shows up in the list of available applications which can open files of type hod. Questions:1. Is there some other Info.plist setting I'm missing to fix this error message?2. Is there something I need to define in the AppleScript itself to accept files of this type?3. If the file doesn't come in as a command-line argument, how can the AppleScript get access to it?
2
0
990
Feb ’20