Re: Getting the name of a file from an "alias"
Re: Getting the name of a file from an "alias"
- Subject: Re: Getting the name of a file from an "alias"
- From: Paul Skinner <email@hidden>
- Date: Mon, 11 Jun 2001 21:47:41 -0400
on 6/11/01 5:15 PM, Jan Pieter Kunst wrote:
>
Greetings,
>
>
I'm sure this must be extremely simple, but I can't find the answer.
>
>
Let's say I have an variable x in my script that is set to an "alias". So,
>
the value of x is:
>
>
alias "Disk:folder1:folder2:file"
>
>
How do I get just the name of the file (in the above case "file") into a
>
string?
>
>
Thanks,
>
Jan Pieter.-
One of a zilljon ways...
set someAlias to alias "dark star:Desktop Folder:current TS scripts:"
tell application "Finder"
name of someAlias
--> "current TS scripts"
end tell
--
Paul Skinner