Re: applescript-users digest, Vol 2 #752 - 8 msgs
Re: applescript-users digest, Vol 2 #752 - 8 msgs
- Subject: Re: applescript-users digest, Vol 2 #752 - 8 msgs
- From: "Marc K. Myers" <email@hidden>
- Date: Tue, 12 Jun 2001 10:24:38 -0400
- Organization: [very little]
At 11:15 PM +0200 6/11/01, 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?
Assume that "x" has been set to alias "Disk:folder1:folder2:file":
set theName to (name of (info for x))
This uses the "info for" scripting addition command from Apple's
Standard Additions.
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[6/12/01 10:23:41 AM]