[Hx] Applescript "Do Menu"

84 views
Skip to first unread message

kanuk compuserve

unread,
Nov 9, 2012, 11:03:18 AM11/9/12
to Helix Discussion List
I am trying to use the Do menu

How to you do that ?  This one gives me an error

tell application "Helix Engine"
activate
end tell
tell application "Helix Engine"
do menu "Open..."
end tell

fred

unread,
Nov 9, 2012, 11:13:27 AM11/9/12
to Helix Discussion List
What's the error?
20?

Scott Amaral

unread,
Nov 9, 2012, 11:15:48 AM11/9/12
to Helix Discussion List
I think open is a separate command outside of the do menu

tell application "Helix Engine"
open #~directParamFile~# ¬
password #~passwordText~#
end tell





Thanks,

Scott P Amaral
American Building Systems

Lenny Eiger

unread,
Nov 9, 2012, 11:58:39 AM11/9/12
to Helix Discussion List
Louis,

I agree with Scott, Open is best open in other ways. Is this what you are trying to accomplish or was it just an example of what you were trying to do?

If we knew, we could help...

Lenny

kanuk compuserve

unread,
Nov 9, 2012, 12:21:32 PM11/9/12
to Helix Discussion List
an example of what you were trying to do?

Ok.  I want the Engine to do a sequence at night.  Before 10.7, i was using Quickeys.  Now with 10.7, ouch… Bugged.  So i was going to use Icalc and an applescript to do the sequence ( a menu item )

Got it working now with this command:

tell application "Helix Engine"
do menu "Midnight Sequence"
end tell


I find it too simple.  But it does work. Open to suggestion.

Louis



kanuk compuserve

unread,
Nov 9, 2012, 2:48:25 PM11/9/12
to Helix Discussion List

fred

unread,
Nov 10, 2012, 7:00:51 AM11/10/12
to Helix Discussion List
Louis,
my suggestion is - keep it simple, even though it's too simple ;-)

cheers
Fred
an example of what you were trying to do?

Ok. �I want the Engine to do a sequence at night. �Before 10.7, i was using Quickeys. �Now with 10.7, ouch� Bugged. �So i was going to use Icalc and an applescript to do the sequence ( a menu item )

Got it working now with this command:

tell�application�"Helix Engine"
do menu�"Midnight Sequence"
end�tell


I find it too simple. �But it does work. Open to suggestion.

Louis



fred

unread,
Nov 10, 2012, 7:02:17 AM11/10/12
to Helix Discussion List
forgot to add that you may want to do some error checking so that if it didn't work you would know about it and why.

Scott Amaral

unread,
Nov 10, 2012, 7:12:22 AM11/10/12
to Helix Discussion List
I believe do meno {midnight sequence} as a list rather than "midnight sequence" might do it


Scott P Amaral
American Building Systems


On Nov 9, 2012, at 2:48 PM, kanuk compuserve <ka...@compuserve.com> wrote:

an example of what you were trying to do?

Ok.  I want the Engine to do a sequence at night.  Before 10.7, i was using Quickeys.  Now with 10.7, ouch… Bugged.  So i was going to use Icalc and an applescript to do the sequence ( a menu item )

Got it working now with this command:

tell application "Helix Engine"
do menu "Midnight Sequence"
end tell


I find it too simple.  But it does work. Open to suggestion.

Louis


fred

unread,
Nov 10, 2012, 7:54:06 AM11/10/12
to Helix Discussion List
On 10/11/12 13:12, Scott Amaral wrote:
I believe do meno {midnight sequence} as a list rather than "midnight sequence" might do it

why would you want it as a list?

Fred

Scott Amaral

unread,
Nov 10, 2012, 8:01:25 AM11/10/12
to Helix Discussion List





Thanks,

Scott P Amaral
American Building Systems

fred

unread,
Nov 10, 2012, 8:09:25 AM11/10/12
to Helix Discussion List
Interesting - I have the following

command syntax
�event helxHEdm� unicode text | {unicode text, ...}
�parameters
Parameter
Required
Type
Description
direct parameter��� required��� unicode text | list of unicode text��� Menu item to choose. When the parameter is a list, only the first item in the list is processed.








On 10/11/12 14:01, Scott Amaral wrote:





Thanks,

Scott P Amaral
American Building Systems

On Nov 10, 2012, at 7:54 AM, fred <fred.st...@communication-unltd.com> wrote:

On 10/11/12 13:12, Scott Amaral wrote:
I believe do meno {midnight sequence} as a list rather than "midnight sequence" might do it

why would you want it as a list?

Fred

Scott P Amaral
American Building Systems


On Nov 9, 2012, at 2:48 PM, kanuk compuserve <ka...@compuserve.com> wrote:

an example of what you were trying to do?

Ok. �I want the Engine to do a sequence at night. �Before 10.7, i was using Quickeys. �Now with 10.7, ouch� Bugged. �So i was going to use Icalc and an applescript to do the sequence ( a menu item )

Got it working now with this command:

tell�application�"Helix Engine"
do menu�"Midnight Sequence"
end�tell


I find it too simple. �But it does work. Open to suggestion.

Louis





fred

unread,
Nov 10, 2012, 8:19:30 AM11/10/12
to Helix Discussion List
aha I see, the below is from Helix Engine..... it should be the same as Helix Rade. In other words it can be either - but I can't see the point of additionally wrapping it in a list as well - that's two characters longer isn't it.

Fred

Gib Henry

unread,
Nov 10, 2012, 6:24:22 PM11/10/12
to Helix Discussion List
RADE 6.2 has a thoroughly updated, modern AppleScript dictionary that's very different from the one for 6.1 (RADE/Engine/Server/Client).  Cheers,
--
Gib


On 11/10/12 7:19 AM, fred wrote:
aha I see, the below is from Helix Engine..... it should be the same as Helix Rade. In other words it can be either - but I can't see the point of additionally wrapping it in a list as well - that's two characters longer isn't it.

Fred





Thanks,

Scott P Amaral
American Building Systems

On Nov 10, 2012, at 7:54 AM, fred <fred.st...@communication-unltd.com> wrote:

On 10/11/12 13:12, Scott Amaral wrote:
I believe do meno {midnight sequence} as a list rather than "midnight sequence" might do it

why would you want it as a list?

Fred

Scott P Amaral
American Building Systems


On Nov 9, 2012, at 2:48 PM, kanuk compuserve <ka...@compuserve.com> wrote:

an example of what you were trying to do?

Ok.  I want the Engine to do a sequence at night.  Before 10.7, i was using Quickeys.  Now with 10.7, ouch… Bugged.  So i was going to use Icalc and an applescript to do the sequence ( a menu item )

Got it working now with this command:

tell application "Helix Engine"
do menu "Midnight Sequence"
end tell


I find it too simple.  But it does work. Open to suggestion.

Louis





kanuk compuserve

unread,
Nov 9, 2012, 11:21:09 AM11/9/12
to Helix Discussion List
I choose the Open… menu just as an example

What i want to do is choosing a menu item in a collection opened in user mode.  The syntax to open any customs menu items.

Thanks

Louis

Le Nov 9, 2012 à 11:15 AM, Scott Amaral <sam...@abssoutheast.net> a écrit :

I think open is a separate command outside of the do menu

tell application "Helix Engine"
open #~directParamFile~# ¬
password #~passwordText~#
end tell

Thanks,

Scott P Amaral
American Building Systems
On Nov 9, 2012, at 11:03 AM, kanuk compuserve <ka...@compuserve.com> wrote:

I am trying to use the Do menu

How to you do that ?  This one gives me an error

tell application "Helix Engine"
activate
end tell
tell application "Helix Engine"
do menu "Open..."
end tell



Lenny Eiger

unread,
Nov 11, 2012, 2:50:16 PM11/11/12
to Helix Discussion List
Louis,

I think I found your problem....

If you have a view or a sequence on a menu, for example "my View", the syntax goes like this:


tell application "Helix Engine"
do menu "my View"
end tell

However, Helix Engine wants to be in charge... so you need this to actually make it work:

tell application "Helix Engine"
activate
do menu "my View"
end tell
 

If you want to run a sequence this works, but if you want to simply to do a post all to update a series of records, you can also do a retrieve using either Heliport or CallHelix and put a post on the export step...

Have fun!

Lenny
Reply all
Reply to author
Forward
0 new messages