• 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
Can't re-name file with time stamp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't re-name file with time stamp


  • Subject: Can't re-name file with time stamp
  • From: Graham Fielder <email@hidden>
  • Date: Wed, 20 Feb 2002 16:14:30 -0500

I have a simple script in which I want to replace the name of a file with a
Time stamp.

tell application "Finder"

display dialog " Time " & the time string of (the current date)

set name of "TEST" to " Time " & the time string of (the current date)

end tell



The time dialog is displayed correctly but I get an error message saying :-

"Can't set name of "TEST " to "Time 21:04:20.".

What am I doing wrong?. (Using OS 9.2.2/AS 1.7)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Can't re-name file with time stamp
      • From: John W Baxter <email@hidden>
    • Re: Can't re-name file with time stamp
      • From: Matt <email@hidden>
    • Re: Can't re-name file with time stamp
      • From: JollyRoger <email@hidden>
    • Re: Can't re-name file with time stamp
      • From: Jon Pugh <email@hidden>
  • Prev by Date: Linked variables
  • Next by Date: Re: PhotoScripter and Trim
  • Previous by thread: Re: Setting Finder Preferences and Folder Views
  • Next by thread: Re: Can't re-name file with time stamp
  • Index(es):
    • Date
    • Thread