on run, Expected a reference
on run, Expected a reference
- Subject: on run, Expected a reference
- From: Robert Poland <email@hidden>
- Date: Sun, 21 Aug 2005 17:28:35 -0600
Hi,
OS 10.4.2. I thought I was being clever here but I get an error
"Expected a reference". What am I misunderstanding? The "on open
(droppedItems)" part works fine, only the "on run " fails.
Tia,
on run
set droppedItems to choose folder
main(droppedItems)
end run
on open (droppedItems)
main(droppedItems)
end open
on main(droppedItems)
repeat with i from 1 to the count of droppedItems --> gets an
error here
set this_item to (item i of droppedItems)
tell application "Finder" to set theKind to kind of this_item
if theKind is "Folder" then
process_folder(this_item, selectedOption)
end if
end repeat
beep
return
end main
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
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