file size and creation date
file size and creation date
- Subject: file size and creation date
- From: email@hidden
- Date: Tue, 12 Mar 2002 09:04:16 +0100
Hi all,
I have two problems I hope someone can answer.
First, get creation date returns what I looking for, but I only need the
date, not the time. How do I script to only get the date?
Second, get size returns some odd value. I only need the file size, either
in kilobyte" or in megabyte.
tell application "Finder"
set searchFolder to "Macintosh HD:images_to_database:in:"
set myList to list folder alias searchFolder without invisibles
repeat with myFilename in every item in myList
set theFile to alias (searchFolder & myFilename)
get creation date of theFile -- returns: date "fredag 20 februari
1998 21.12.16"
get size of theFile -- returns: 1.1658694E+7
end repeat
end tell
Best regards
Peter Mathiessen
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.