Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
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