Jump to content

Message error -2740 ? Need help with my script


This topic is 7672 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello, In my last post I described the problems I had trying to use a quickey application with filemaker and that I could n't use two quickey apple events because it seems to only allow one.

So I tried applescript. I used the script editor and recorded exactly what I was trying to do , and when I told it to run it did it. But when I brought the exact script text into filemaker it didn't work. Here below is that text.

Menu "ProCD PhoneBooks" Exactly From "#-16489"

Wait Application "ProCD PhoneBooks"

Click (37, 29 Top_Left) - (0, 0 Mouse) Window #2 ("Select Phone - North East - V3.")

AliasKeystroke %51

AliasKeystroke %51

AliasKeystroke CMD %9 (V)

AliasKeystroke %36

Pause 0.5

Wait Cursor Is_Not Watch

Click (334, 52 Top_Left) - (0, 0 Mouse) Window #2 ("Select Phone - North East - V3.")

AliasKeystroke CMD %34 (I)

Click (106, 328 Top_Left) - (0, 0 Mouse) Window #2 ("More Info") Button #3 ("Copy")

Menu "FileMaker Pro" Exactly From "#-16489"

---------

I get an error which says

A identifier can't go after this " " ". (Error -2740)

How can I make the above script work in filemaker?

It works from the script editor.

Thanks

Dave

Link to comment
Share on other sites

probably have to add sth. like

tell application "quickkeys macro processor.app"

... the code

end tell ...

or

tell application "ScriptEditor"

do script file "Macintosh HD:yourfile.scpt"

....

Link to comment
Share on other sites

This topic is 7672 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.