• 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: 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


  • Follow-Ups:
    • Re: Getting the name of a file from an "alias"
      • From: Jan Pieter Kunst <email@hidden>
References: 
 >Getting the name of a file from an "alias" (From: Jan Pieter Kunst <email@hidden>)

  • Prev by Date: Re: Dropping text on to Droplets
  • Next by Date: Re: Call a perl script from an AppleScript
  • 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