I installed Snow Leopard yesterday, and when I went to run my existing, working scripts they are all failing now.
I put some common routines I use into separate .scptd files, and I bring them into the main scripts using commands of this form:
set safariHelper to (load script file ¬
"Ozzie:Users:bob:Documents:Games:Baseball:SafariHelper.scptd")
Notice that the command has the complete path to the script file, starting with the name of the hard drive ("Ozzie").
This technique has been working for me for years, but when I tried to run it after I installed Snow Leopard, it started throwing errors like this:
error "File file Ozzie:Users:bob:Documents:Games:Baseball:SafariHelper.scptd wasn’t found." number -43 from file "Ozzie:Users:bob:Documents:Games:Baseball:SafariHelper.scptd" to file
I have confirmed that the file did not move during installation (and well it shouldn't, being in my Users folder and all). Here's command line output from the terminal:
ozzies-macbook-pro:~ bob$ ls -ld /Users/bob/Documents/Games/Baseball/SafariHelper.scptd
drwxr-xr-x 3 bob staff 102 Feb 24 2007 /Users/bob/Documents/Games/Baseball/SafariHelper.scptd
What changed in the new AppleScript, and what do I need to do to get my scripts running again?
Thank you for any assistance,
– Bob Koerner