Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-20 Thread Arnaud Nicolet
Usually, I remove the footer (I already said that). As for the quoted text (the previous post for which I respond), it is necessary. Don't you recall a large problem in this mailing list? Some people don't receive some messages (those messages are lost, randomly). I can't say how often I se

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-20 Thread Luis Cordova
They mean to cut stuff that is irrelevant, like I just did with the email you sent. I cut the following portions by hand: > > Brian and Arnaud: Please trim your posts. You are cluttering the > > digests and archives. > > ___ > Unsubscribe or switch deliv

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-20 Thread Arnaud Nicolet
Excuse my bad english, but I was unable to resolve the "trim" verbe. I certainly don't want to clutter the archives, but I don't yet know what I'm doing wrong. Le 20 févr. 07 à 01:15 Matin, Lars Jensen a écrit: > Brian and Arnaud: Please trim your posts. You are cluttering the > digests and arc

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Lars Jensen
Brian and Arnaud: Please trim your posts. You are cluttering the digests and archives. lj ___ Unsubscribe or switch delivery mode: Search the archives:

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Arnaud Nicolet
Wow, I forgot something (sorry, in addition to reply twice for the same thread): there's an utility named "ae monitor" (maybe as a single word) that listens to AppleEvents (from any app to any app on all the operating system) and which translates them as RB's code. "ae monitor" is not free,

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Arnaud Nicolet
Thanks, I'll take a look. Le 19 févr. 07 à 23:24 Soir, Brian Heibert a écrit: > Just a quick note you can get a os x resource editor that will edit > the same resources said below > > From: > > FREE * ResZilla: http://sourceforge.net/projects/rezilla > > Commercial Resorcerer $256: http://www.ma

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Arnaud Nicolet
Glad you become an expert of AppleScript. There are things in the language I don't currently figure why they happen the way they happen ;-) Le 19 févr. 07 à 23:25 Soir, Lennox Jacob a écrit: > Thanks Arnaud, > I have "Applescript in a nutshell", by no means a nutshell - 500 > pages. > I'll

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Lennox Jacob
Thanks Brian. Lennox Brian Heibert <[EMAIL PROTECTED]> wrote: Just a quick note you can get a os x resource editor that will edit the same resources said below From: FREE * ResZilla: http://sourceforge.net/projects/rezilla Commercial Resorcerer $256: http://www.mathemaesthetics.com/ Resorc

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Lennox Jacob
Thanks Arnaud, I have "Applescript in a nutshell", by no means a nutshell - 500 pages. I'll go though what you recommend and refer to "Applescript in a nutshell" as needed. Thanks again. Lennox. Arnaud Nicolet <[EMAIL PROTECTED]> wrote: Hi Lennox, I can't recommend you any book, sorry. In my cas

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Brian Heibert
Just a quick note you can get a os x resource editor that will edit the same resources said below From: FREE * ResZilla: http://sourceforge.net/projects/rezilla Commercial Resorcerer $256: http://www.mathemaesthetics.com/ ResorcererIndex.html I'd recommend ResZilla as it is free and I beli

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Arnaud Nicolet
Hi Lennox, I can't recommend you any book, sorry. In my case, I first learned AppleScript (that was my first "programming" experience). Then, when I started using Realbasic, I discovered that AppleEvents seemed to do the same actions than AppleScripts. So I've used both RB and AppleScript at

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Lennox Jacob
Thanks Arnaud, Works great now. Where can I learn about apple events? Any recommended books? Thanks again. Lennox. Arnaud Nicolet <[EMAIL PROTECTED]> wrote: That means, as you probably figured out, the System Events is not running ;-) You may try to insert that code: dim f As FolderItem

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Arnaud Nicolet
That means, as you probably figured out, the System Events is not running ;-) You may try to insert that code: dim f As FolderItem f=SystemFolder.child("Library").child("CoreServices").child ("System Events.app") if f<>nil and f.exists then f.launch end if Le 19 févr. 07 à 2

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Lennox Jacob
Thanks Arnaud, I used it but I keep getting the error message, ("System Events is not running. I don't know if that can happen."). I tried it with S (Save) instead of ; or : and still got the error message, any suggestions? Lennox. Arnaud Nicolet <[EMAIL PROTECTED]> wrote: Ok, so you are

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Arnaud Nicolet
Yes, using a keyboard shortcut to invoke a menu item from the OS is only useful for personal purposes. Le 19 févr. 07 à 15:08 Soir, Thom McGrath a écrit: It's also possible for people to change these commands using the Keyboard preference pane. On Feb 19, 2007, at 8:29 AM, Arnaud Nicolet w

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Thom McGrath
It's also possible for people to change these commands using the Keyboard preference pane. -- Thom McGrath The ZAZ Studios AIM: thezazstudios On Feb 19, 2007, at 8:29 AM, Arnaud Nicolet wrote: Ah, good to know. In french, it's also "Cmd-:" and "Cmd-;" but if it's d

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Arnaud Nicolet
Le 19 févr. 07 à 14:24 Soir, Tom a écrit: Arnaud Nicolet wrote: Well, in my tests, I used Command-S in a timer and switched to TextEdit. When the timer executed, a Save dialog appeared in TextEdit, that's it! Now, it should also work with ":". Note that it is not always "Cmd-:". On my Ger

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Tom
Arnaud Nicolet wrote: Well, in my tests, I used Command-S in a timer and switched to TextEdit. When the timer executed, a Save dialog appeared in TextEdit, that's it! Now, it should also work with ":". Note that it is not always "Cmd-:". On my German Mac OS X I have "Cmd-," as preferences sho

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Arnaud Nicolet
Ok, so you are about to use my second suggestion. And, in fact, that's great: you're apparently making an OS X-only thing (I said "great" because simulating a keyboard shortcut is different on every platform; it will save explanations (and I also don't know for Win32)). Ok, I just tried tha

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Lennox Jacob
Thanks Arnaud, I do not own the menu item. I just added CocoaSpellChecker and it is invoked via a menu item which I do not own. The menuitem has two sub menuitem invoked via Command-: and Command-; I would like to invoke these two sub mernu items via seperate pushbuttons. Kindly advise. Lennox. A

Re: Help please: Coding a pushbutton for a menuitem shortcut

2007-02-19 Thread Arnaud Nicolet
You have 2 ways of achieving that. If you own the menu item, then you may move the code from the menu handler to a new method. Then, instead of invoking Command and colon in your code, you simply call the new method (you also call the new method from the menu handler so that the menu item d