• 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: ScriptEditor thinks my command is a variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ScriptEditor thinks my command is a variable


  • Subject: Re: ScriptEditor thinks my command is a variable
  • From: Lee Ann Rucker <email@hidden>
  • Date: Fri, 13 Apr 2007 11:03:57 -0700


On Apr 13, 2007, at 4:13 AM, Thomas Engelmeier wrote:


Am 13.04.2007 um 00:29 schrieb Lee Ann Rucker:

Maybe I'm missing something obvious here - I've googled every variation of AppleScript and Cocoa I can think of - but if it's some kind of caching issue I have no idea how to clear it.

The three obviousities are:
- IIRC 'start' is already used for the first item of a collection ("set insertion mark to start of first paragraph"). AppleScript is chronically incapable of resolving ambiguous terms correctly.

I did try giving it a different name that was unlikely to be used elsewhere but that didn't help. Though what would help would be a simple list somewhere in the doc of words that, if not actually reserved, are inadvisable to use.


- There is already a "standard" term that pretty much expresses your command: "run" - just make sure you use the same FourCC like (e.g.) ScriptEditor

Actually in the context of this app, run does something else.

- Try the applescript-implementors list, there are many brave souls who managed to get their app scriptable (against many odds ;-)

And speaking of AETE / sdef Applescript caching issues - deleting all application instances with the obsolete sdef and then a logout / relogin seems to be the only way to get the ScriptEditor cache nuked.

And voila, that's what finally did it. I didn't want to believe logging out would be necessary, because it *did* pick up other changes. Sheesh.


I'd also recommend ScriptDebugger, it's "Object Model Explorer" is an invaluable timesaver to see if you got an complete complex object model right...

Thanks! _______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >ScriptEditor thinks my command is a variable (From: Lee Ann Rucker <email@hidden>)
 >Re: ScriptEditor thinks my command is a variable (From: Thomas Engelmeier <email@hidden>)

  • Prev by Date: Re: Possible to draw an NSMutableAttributedString into a CGContextRef?
  • Next by Date: Re: Possible to draw an NSMutableAttributedString into a CGContextRef?
  • Previous by thread: Re: ScriptEditor thinks my command is a variable
  • Next by thread: Re: ScriptEditor thinks my command is a variable
  • Index(es):
    • Date
    • Thread