• 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: getting file info
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting file info


  • Subject: Re: getting file info
  • From: dev_sleidy <email@hidden>
  • Date: Thu, 27 Jul 2006 17:48:38 -0400

Can AS return the file creation date & the file modification date from a selected file?

Yes.

-----

set file_Path to "HD3:System:Library:Screen Savers:Flurry.saver:"

-- Example 01:
set file_Info to info for file_Path
set {file_Creation_Date01, file_Modification_Date01} to {creation date of file_Info, modification date of file_Info}


-- Example 02:
tell application "Finder" to set {file_Creation_Date02, file_Modification_Date02} to {creation date of file file_Path, modification date of file file_Path}


-- Results:
file_Creation_Date01 & return & file_Modification_Date01 & return & return & file_Creation_Date02 & return & file_Modification_Date02


-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >getting file info (From: Bob Cuilla <email@hidden>)

  • Prev by Date: Re: getting file info
  • Next by Date: some questions on iTunes scripting
  • Previous by thread: Re: getting file info
  • Next by thread: some questions on iTunes scripting
  • Index(es):
    • Date
    • Thread