Re: ScriptEditor thinks my command is a variable
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