• 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
Fwd: Handlers in applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Handlers in applications


  • Subject: Fwd: Handlers in applications
  • From: Irwin Poche <email@hidden>
  • Date: Mon, 14 Feb 2005 18:31:16 -0600


Thanks guys. I used to know that, but it's been a while. And "my" is a lot cleaner than "tell me to".

Thanks,

-Irwin


On Feb 12, 2005, at 11:17 AM, Irwin Poche wrote:

There has to be a simple solution to this but it eludes me.

It appears that applications can't deal with simple condition handlers. This example issues an Applescript Error "TextEdit got an error: Can't continue simplicity." Same result for iPhoto 5.0.1 and iTunes...

tell application "TextEdit"
activate
simplicity("testing")
end tell

on xxx)
display dialog xxx
end simplicity

but this works...

simplicity("testing")

on xxx)
display dialog xxx
end simplicity

The first example will work by using a tell me to before simplicity but that seems unnecessary and kludgy.

-Irwin
_______________________________________________
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

 _______________________________________________
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

  • Prev by Date: Re: xml file created from directory structure
  • Next by Date: Re: Slightly OT: InDesign cells/tables
  • Previous by thread: Re: Handlers in applications
  • Next by thread: suspend execution of a script
  • Index(es):
    • Date
    • Thread