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: Brian Mather <email@hidden>
- Date: Mon, 11 Jun 2001 20:15:55 -0400
Try this:
(*all of your script stuff that sets x to the alias of the file goes up
here*)
Set x to x as string
Set myname to the last text item of x
(* now do whatever you wanted to do with the name down here*)
Brian Mather
Digital Photographer
Global Sports Interactive
610-491-7091
http://www.globalsports.com
-----Original Message-----
From: Jan Pieter Kunst [SMTP:email@hidden]
Sent: Monday, June 11, 2001 5:15 PM
To: Applescript lijst
Subject: Getting the name of a file from an "alias"
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.-
_______________________________________________
applescript-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/applescript-users