• 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: Very Irritating Open Handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Very Irritating Open Handler


  • Subject: Re: Very Irritating Open Handler
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 04 Apr 2011 10:13:58 -0500

On Apr 2, 2011, at 4:05 AM, Axel Luttgens wrote:

Fortunately, in your case, you aren't interested in the weblocs.
So, you may just trap the case of a single webloc:

on open L
-- do something with the list of aliases
end open

on open location WL
-- do something with the webloc if needed, or just trap the event
end open location

I tried this. (Interrupted by a Sat afternoon power outage.)
As far as I can determine, it does not trap anything.
Here is what I tried, with comments ...

on run
try
display dialog "I'm running."
on error errText number errNr
"Run Error = " & errNr & return & errText
display dialog the result
end try
end run

on open dropList
try
repeat with dropItem in dropList
display dialog (dropItem as text) -- this does not display for a .webloc
end repeat
on error errText number errNr
"Open Error = " & errNr & return & errText
display dialog the result
end try
end open

on open location WL
display dialog "open location" -- this displays correctly for a .webloc
display dialog WL -- this displays correctly for a .webloc
display dialog "finished" -- this displays correctly for a .webloc
error "open loc" -- but no error is returned. Should return -2700 error.
end open location

The application simply dies within the open location handler without returning.

 _______________________________________________
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/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Very Irritating Open Handler
      • From: Axel Luttgens <email@hidden>
References: 
 >Re: Very Irritating Open Handler (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Find all PowerPC Applications in Applications folder
  • Next by Date: Re: Mail Rules and getting ID number
  • Previous by thread: Re: Very Irritating Open Handler
  • Next by thread: Re: Very Irritating Open Handler
  • Index(es):
    • Date
    • Thread