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

Re: Renaming Picture 1


  • Subject: Re: Renaming Picture 1
  • From: Applescript User Lewis <email@hidden>
  • Date: Tue, 22 Jan 2002 03:58:14 -0700

At 17:03 -0500 21/01/02, Graham Fielder wrote:
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

set the name of filename to filename & " " & date_string

--
___________________________________________________________________________
| applescript@ & "southgaylord.com"| Unix is very user friendly. It's just |
| I frankly do not believe Micro- | picky about who its friends are. |
| soft has the user's interests at | I want a party where all the women wear|
| heart, or even in mind. | new dresses and the men all drink beer.|
---------------------------------------------------------------------------


References: 
 >Renaming Picture 1 (From: Graham Fielder <email@hidden>)

  • Prev by Date: Re: solutions to scripting addition terminology conflicts (i.e. the osax namespace problem)
  • Next by Date: RE: Renaming Picture 1
  • Previous by thread: Renaming Picture 1
  • Next by thread: Re: Renaming Picture 1
  • Index(es):
    • Date
    • Thread