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