• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
load file statement not finding files with Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

load file statement not finding files with Snow Leopard


  • Subject: load file statement not finding files with Snow Leopard
  • From: Green Man <email@hidden>
  • Date: Mon, 31 Aug 2009 08:39:44 -0700

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
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: another interesting bug.
  • Next by Date: Re: Snow Arithmetic
  • Previous by thread: Re: another interesting bug.
  • Next by thread: Here is an example of the weird character thing.
  • Index(es):
    • Date
    • Thread