• 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
Re: load file statement not finding files with Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: load file statement not finding files with Snow Leopard


  • Subject: Re: load file statement not finding files with Snow Leopard
  • From: Brian Christmas <email@hidden>
  • Date: Thu, 3 Sep 2009 11:05:10 +1000


On 03/09/2009, at 10:47 AM, Green Man wrote:

It looks like some Apple engineers are working on Snow Leopard problems this week, so I'm going to submit mine again and hope somebody notices this time.  My apologies to those of you who saw this before:


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

G'day

This still works for me.

set ScriptSource to (TheDesktopDisk & "Library:Scripts:Folder Action Scripts:Mail Manager.scpt") as alias
try
run script ScriptSource
end try

Regards

Santa.

 _______________________________________________
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

References: 
 >load file statement not finding files with Snow Leopard (From: Green Man <email@hidden>)

  • Prev by Date: Re: Rép: date/Snow Leopard changed
  • Next by Date: Re: Rép: date/Snow Leopard changed
  • Previous by thread: Re: load file statement not finding files with Snow Leopard
  • Next by thread: Re: load file statement not finding files with Snow Leopard (Brian Christmas)
  • Index(es):
    • Date
    • Thread