Re: Filespec changes to "followed" alias
Re: Filespec changes to "followed" alias
- Subject: Re: Filespec changes to "followed" alias
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 15 May 2002 12:06:41 -0700
On 5/15/02 11:25 AM, "Marc K. Myers" <email@hidden> wrote:
>
Alias references have to point to existing files and will continue to
>
point to that file even if you move it or change its name. Alias
>
references internally point to an invisable unique file identifier, not
>
to names or locations. What you need is a file reference:
>
>
tell application "Finder" to delete file "Apple:Desktop Folder:Hotlist.html"
And that's what's broken in AS 1.8.2b3 as you may have noticed in the
recent thread "What happened to 'file'? Probably only temporary, although
there was no authoritative explanation from a Chris.
As a workaround, as Emmanuel posted, concatenating strings or variables
within the path name will fool 'alias' into letting you compile it.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.