• 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: Getting the name of a file from an "alias"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Getting the name of a file from an "alias"
  • Next by Date: Re: Getting the name of a file from an "alias"
  • Previous by thread: Re: Getting the name of a file from an "alias"
  • Next by thread: Re: Getting the name of a file from an "alias"
  • Index(es):
    • Date
    • Thread