Re: how to debug scripts that use dropped items?
Re: how to debug scripts that use dropped items?
- Subject: Re: how to debug scripts that use dropped items?
- From: Richard Morton <email@hidden>
- Date: Wed, 3 Dec 2003 14:12:56 +1100
On Wednesday, December 3, 2003, at 01:17 PM, Mark Dawson wrote:
If I create a script that accepts drops, how do I debug it? In my
script, I've added log "I'm here 1" type outputs, but after dropping a
folder onto the created script app, nothing shows up in the events log
(10.2.8).
One way to do it is to set up the required conditions for the open
handler & call it from 'run', whilst in your editor:
on run
set dropList to {alias "Mac HD:Users:you:Documents:Your Folder:"} --
open takes a list of aliases
open dropList
end run
on open whatever
-- do yo' stuff
end open
Cheers,
O Penn
-- no relation to Pig
_______________________________________________
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.