I have a problem with “open file” command on Mac OS 10.0 only ,
but the command is working fine on other versions of Mac(9.1, 9.2, 10.1, 10.2 and 10.3)
The error message is "Can’t get file “Mac HD:My Path+:Install”.
There is a space and + in foler’s name. Can it be an issue?
Below is the script.
set me_ to path to me
tell application “Finder”
set appContainer to container of me_ as text
set appInstall to (appContainer & “My Path+:Install”)
open file appInstall
end tell
Checking for bugs when scripting Finder, found this:
Apple’s Chris Nebel confirmed that "the Finder in Mac OS X 10.0 doesn’t understand “file ” references. However, “alias” references and long-hand Finder object specifiers both work fine. 9/22/01
There is another advantage using alias references. When compiling, if it can’t find the item, then it will error. You can use this in both setting a reference and checking if the item is there with the use of error handlers (try dtatements).
I couldn’t find out if they fixed it in OS10.1, but I woulld assume that fixing such an important bug would be a priority.