• 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: Michelle Steiner <email@hidden>
  • Date: Mon, 11 Jun 2001 16:45:46 -0700

On 6/11/01 2:15 PM, Jan Pieter Kunst <email@hidden> wrote:

>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?

set x to alias "Disk:folder1:folder2:file"
set y to x as string
set text item delimiters to {":"}
set z to last text item of y
set text item delimiters to {""}
z
--> file

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Prev by Date: Re: Newbie and first questions about old versions
  • 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