• 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
appending filenames daily with applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

appending filenames daily with applescript


  • Subject: appending filenames daily with applescript
  • From: Chris Chattom <email@hidden>
  • Date: Tue, 28 Nov 2000 16:25:23 -0700

still having trouble with the file dating scripting -

here's what i have so far:

tell application "FileMaker Pro"
do script "Duplicate File"
end tell

tell application "Finder"
select file "date" of folder "FMPro database"
set name of selection to the date
string of (current date)
end tell


when i run this script everything works just how i want it to
except it renames the file "Idt" and gives me a message that says:

"Script Error: Finder got an error: Can't get date "Tuesday, November 28,
2000 4:09:11 PM"

so, obviuosly it is seeing the date, but the date when it is written all
of the way out like this is simply too long to fit into a filename...
if anyone has any ideas...
thanks -
chris


  • Follow-Ups:
    • Re: appending filenames daily with applescript
      • From: Rob Jorgensen <email@hidden>
  • Prev by Date: Re: FileMaker print command
  • Next by Date: Re: Scripting stuffit for .zip - TIP
  • Previous by thread: Re: Scripting Word macros
  • Next by thread: Re: appending filenames daily with applescript
  • Index(es):
    • Date
    • Thread