• 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: how to debug scripts that use dropped items?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >how to debug scripts that use dropped items? (From: Mark Dawson <email@hidden>)

  • Prev by Date: Re: how to debug scripts that use dropped items?
  • Next by Date: Re: how to debug scripts that use dropped items?
  • Previous by thread: Re: how to debug scripts that use dropped items?
  • Next by thread: Re: how to debug scripts that use dropped items?
  • Index(es):
    • Date
    • Thread