Re: 2nd try: Choose folder dialog and then process contents?
Re: 2nd try: Choose folder dialog and then process contents?
- Subject: Re: 2nd try: Choose folder dialog and then process contents?
- From: Aaron Rosenblum <email@hidden>
- Date: Wed, 6 Oct 2004 16:55:49 -0400
It actually doesn't show up unless you put something in the
"process_item(this_item)" subroutine
Such as:
on process_item(this_item)
-- NOTE that the variable this_item is a file reference in alias format
-- FILE PROCESSING STATEMENTS GOES HERE
-- Make these files all green
tell application "Finder"
activate
set label index of this_item to 6
end tell
end process_item
A quick look at the event log shows that it is the "System Events"
application that is actually trying to process the command and not the
Finder (even though the finder is in the "tell" statement at that
point)... Any ideas?
thanks
Aaron
On Oct 6, 2004, at 4:08 PM, Michelle Steiner wrote:
On Oct 6, 2004, at 12:57 PM, Aaron Rosenblum wrote:
set this_folder to (choose folder with prompt "Pick the folder
containing the files to process:") as string
tell application "System Events"
set these_items to every file of folder this_folder
end tell
That works just fine for me. So does this:
set this_folder to (choose folder with prompt "Pick the folder
containing the files to process:")
tell application "System Events"
set these_items to every file of this_folder
end tell
-- Michelle Purplehair
--
if u cn rd ths u cn gt a gd jb, bt if u rt lk ths u r a mrn.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden