• 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: I've changed the name of a file - now how do I get at path to the new name?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >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>)

  • Prev by Date: Re: I've changed the name of a file - now how do I get at path to the new name?
  • Next by Date: Re: FMP5 & Current Record
  • Previous by thread: Re: I've changed the name of a file - now how do I get at path to the new name?
  • Next by thread: Re: I've changed the name of a file - now how do I get at path to the new name?
  • Index(es):
    • Date
    • Thread