• 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: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"


  • Subject: Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
  • From: Bill Hernandez <email@hidden>
  • Date: Wed, 3 Jan 2007 01:48:23 -0600


On Dec 18, 2006, at 10:07 PM, Bill Hernandez wrote:

-- +---------+---------+---------+---------+---------+---------+
on script_title()
(*
Filename : get_every_file_of_every.scpt (Script Debugger)
Author : Bill Hernandez
Version : 1.0.0
Updated : Tuesday, January 02, 2007 ( 6:15 PM )
*)
end script_title
-- +---------+---------+---------+---------+---------+---------+
on script_notes( )
(*
This is a work around to the alias list problem I encountered
*)
end script_notes
-- +---------+---------+---------+---------+---------+---------+
tell application "Finder"
activate
set thePath to choose folder

-- THIS DOES NOT GIVE THE CORRECT ANSWER --> as alias list, instead it returns a document list
set aSel to (((every document file in folder thePath) & (every document file of every folder in folder thePath)) as alias list)

display dialog ("[2451] " & (get modification date of (item 1 of aSel)) as string)

set f_info to info for (alias ((item 1 of aSel) as text))
display dialog ("[2452] " & (get modification date of f_info) as string)

-- THIS DOES THE TRICK, it returns an alias list
set aSelection1 to (every document file in folder thePath) as alias list
set aSelection2 to ((every document file of every folder in folder thePath)) as alias list
set aSelection to (aSelection1 & aSelection2)

display dialog ("[2453] " & (get modification date of (item 1 of aSelection)) as string)

set f_info to info for (alias ((item 1 of aSelection) as text))
display dialog ("[2454] " & (get modification date of f_info) as string)
end tell
-- +---------+---------+---------+---------+---------+---------+


_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
      • From: Bill Hernandez <email@hidden>
  • Prev by Date: Re: Finder Window Position Help
  • Next by Date: Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
  • Previous by thread: Re: making a dialog to stop a loop and quit script
  • Next by thread: Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
  • Index(es):
    • Date
    • Thread