Re: [Newbie] What's wrong with my code ?
Re: [Newbie] What's wrong with my code ?
- Subject: Re: [Newbie] What's wrong with my code ?
- From: "Mark J. Reed" <email@hidden>
- Date: Tue, 27 Dec 2005 07:40:57 -0500
Raw AppleScript doesn't know how to make a new menu item. Menu items are, in general, far too low-level a concept for AS, although there may well be some osax (AppleScript extension) or scriptable application which lets you do low-level GUI stuff from AS like that.
AS is not, in general, an application-development language; rather, it's an application-automation language. It's best at letting you "remote control" other application. You can certainly write standalone apps in AppleScript, but you do so at a higher level than what you're doing here, with commensurately less control over find details like menus and their items.
What exactly are you trying to do?
On 12/27/05, Eric Morand <email@hidden> wrote:
Hi list !
After a lot of years spent with Objective-C, I'm back to
Applescript...and I've to confess that it is NOT that easy to return !!!
In fact, I'm stuck with newbies problems (yes that's a shame). In
particular, here is a snipet of code that doesn't work :
set aMenuItem to (make new menu item)
set (title of aMenuItem) to "Test"
display dialog (title of aMenuItem)
Can anyone tell me what's wrong with this code ? I just can't see
where I made a mistake.
Thanks by advance,
Eric.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
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