Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting file info



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.