• 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: File reference problems in Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File reference problems in Snow Leopard


  • Subject: Re: File reference problems in Snow Leopard
  • From: Doug Tallman <email@hidden>
  • Date: Mon, 14 Sep 2009 07:52:39 -0400

This works:

set theFile to (alias "Macintosh HD") as string

This doesn't:

alias "Macintosh HD:Users:UserName:Folder:ScriptName.scpt" as file

But, strangely, this does:

file "Macintosh HD:Users:UserName:Folder:ScriptName.scpt" as alias

doug



On Sep 14, 2009, at 6:34 AM, Elliotte Rusty Harold wrote:

set clib to (load script (alias "Macintosh HD:Users:elharo:Cafe Au
Lait:support:CafeLib.scpt")

After some debugging it looks like the issue is in the file reference.
Speciifcally this now fails:

set theFile to file "Macintosh HD:Users:elharo:Cafe Au
Lait:support:CafeLib.scpt"

error "Can’t get file \"Macintosh HD:Users:elharo:Cafe Au
Lait:support:CafeLib.scpt\"." number -1728 from file "Macintosh
HD:Users:elharo:Cafe Au Lait:support:CafeLib.scpt"

In fact, so does this:

set theFile to file "Macintosh HD"

Any ideas?

 _______________________________________________
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

  • Follow-Ups:
    • Re: File reference problems in Snow Leopard
      • From: Elliotte Rusty Harold <email@hidden>
References: 
 >File reference problems in Snow Leopard (From: Elliotte Rusty Harold <email@hidden>)

  • Prev by Date: Re: File reference problems in Snow Leopard
  • Next by Date: Re: File reference problems in Snow Leopard
  • Previous by thread: Re: File reference problems in Snow Leopard
  • Next by thread: Re: File reference problems in Snow Leopard
  • Index(es):
    • Date
    • Thread