• 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: Yvan KOENIG <email@hidden>
  • Date: Mon, 14 Sep 2009 15:22:14 +0200


Le 14 sept. 2009 à 14:04, Elliotte Rusty Harold a écrit :

On Mon, Sep 14, 2009 at 7:52 AM, Doug Tallman <email@hidden> wrote:
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

More food for thought. It's beginning to look like the problem is
getting at things inside my home directory. For instance, this works:

set libraryFile to (alias "Macintosh HD:Users:elharo") as string

but this does not

set libraryFile to (alias "Macintosh HD:Users:elharo:Documents") as string

I would use the path to instruction to get rid of possibles typos.

set libraryFile to (path to documents folder) as text

-->  "<startupVolume>:Users:<userAccount>:Documents:"

set p2Home to path to home folder

--> alias "<startupVolume>:Users:<userAccount>:"

set p2Start to path to startup disk

--> alias "<startupVolume>"

Yvan KOENIG (VALLAURIS, France) lundi 14 septembre 2009 15:22:08


 _______________________________________________
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: 
 >File reference problems in Snow Leopard (From: Elliotte Rusty Harold <email@hidden>)
 >Re: File reference problems in Snow Leopard (From: Doug Tallman <email@hidden>)
 >Re: 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: Sending many lines of text to TextEdit window
  • Previous by thread: Re: File reference problems in Snow Leopard
  • Next by thread: Re: File reference problems in Snow Leopard
  • Index(es):
    • Date
    • Thread