• 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: applescript-users digest, Vol 2 #752 - 8 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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]


  • Prev by Date: Re: Script Editor freezing
  • Next by Date: Re: Apple Event timeout problems... Large script.
  • Previous by thread: Re: Replace all attributes font in a quark document.
  • Next by thread: AppleScript Timeout
  • Index(es):
    • Date
    • Thread