Re: applescript-users digest, Vol 2 #751 - 11 msgs
Re: applescript-users digest, Vol 2 #751 - 11 msgs
- Subject: Re: applescript-users digest, Vol 2 #751 - 11 msgs
- From: altenburg <email@hidden>
- Date: Tue, 12 Jun 2001 18:50:13 +0200
Jan Pieter wants the file name as a string
>
alias "Disk:folder1:folder2:file"
>
>
How do I get just the name of the file (in the above case "file") into a
>
string?
set tempString to alias "Disk:folder1:folder2"file" as string
set oldDelimiters to AppleScript's text item delimiters
set Applescript's text item delimiters to ":"
set fileName to the last text item of tempString
set Applescript's text item delimiters to oldDelimiters
-- untested
HTH,
Bert