• 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
Renaming Picture 1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Renaming Picture 1


  • Subject: Renaming Picture 1
  • From: Graham Fielder <email@hidden>
  • Date: Mon, 21 Jan 2002 17:03:13 -0500

I'm new to AS.

I want to rename a file and add the date, in YY-MM-DD format. The filename
gets altered correctly but the date isn't added!

Here's what I wrote:-


tell application "Finder"
set the date_slug to my format_date_using(the current date, ".", {"YY",
"MM", "DD"})
set filename to filename & " " & date_slug
end tell

Thanks. Graham.


  • Follow-Ups:
    • Re: Renaming Picture 1
      • From: Applescript User Lewis <email@hidden>
  • Prev by Date: Re: Perl in AppleScript Reference
  • Next by Date: Save a text file
  • Previous by thread: Re: Perl in AppleScript Reference
  • Next by thread: Re: Renaming Picture 1
  • Index(es):
    • Date
    • Thread