I’m trying to open an application using it’s creator type, like this:
tell application “Finder” to open application file id “ttxt”
On one machine it works perfectly, on another I get this error:
Finder got an error: Can’t get file id “ttxt”
Now both machines are running OS 10.3.7, applescript 1.9.3 and TextEdit 1.3 (v202). It looks like the second machine is missing something (scripting addition???) to run the command. Does anybody know what I’m missing?
I’ve tried it with several other applications as well, all resulting in the same error
I experiment some bad behaviours some times scripting the Finder. Some times the error fixes itself after asking several times… Is it the same if you try launching a different app? What happens if you try this instead:
tell application "Finder" to open application file id "com.apple.TextEdit"
I think I had a similar problem trying to launch Macromedia Flash, just when it introduced the CFBundleIdentifier tag in the Info.plist file, so I must use now “com.macromedia.flash.7” instead of “MFL2”, which doesn’t work (just the same behaviour you describe).