• 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
file size and creation date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: file size and creation date
      • From: Emmanuel <email@hidden>
    • Re: file size and creation date
      • From: Andy Wylie <email@hidden>
  • Prev by Date: Re: Question: Arrays and Matrixes
  • Next by Date: Re: Do shell script "date" vs current date
  • Previous by thread: Re: Question: Arrays and Matrixes
  • Next by thread: Re: file size and creation date
  • Index(es):
    • Date
    • Thread