Re: I've changed the name of a file - now how do I get at path to the new name?
Re: I've changed the name of a file - now how do I get at path to the new name?
- Subject: Re: I've changed the name of a file - now how do I get at path to the new name?
- From: Shane Stanley <email@hidden>
- Date: Fri, 03 Nov 2000 21:54:09 +1100
On 3/11/00 9:32 PM +1000, Shane Stanley, email@hidden, wrote:
>
I have to ask: Why?
OK, I get to answer my own question: Because yours worked and mine didn't
<blush>.
But even when I fix it:
on GetName(filePath)
set oldDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to {":"}
if filePath ends with ":" then
set theName to text item -2 of filePath
else
set theName to text item -1 of filePath
end if
set AppleScript's text item delimiters to oldDelims
return theName
end GetName
the time stays about the same. So I'm still puzzled.
--
Shane Stanley, email@hidden