Jump to content

Error: A property can’t go after this identifier.


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

Recommended Posts

I have created a button to open a application while in a database.

I now format it to do a AppleScript. I write under the button Native Applescript:

Perform AppleScript ["tell application "AppleScript Editor" to activate"]. Needles to say that the script tell application "AppleScript Editor" to activate works fine if ran directly from Applescript.

I get error:

A property can’t go after this identifier. It than highlights Perform AppleScrip

I looked in the manual where there is an example of how to copy paste to a ApplewWorks document and as such I can see nothing wrong with my formulation.

Anybody know why this happens?

FYI I am on FMP 11 on OS 10.6.6

Link to comment
Share on other sites

I have created a button to open a application while in a database.

I now format it to do a AppleScript. I write under the button Native Applescript:

Perform AppleScript ["tell application "AppleScript Editor" to activate"]. Needles to say that the script tell application "AppleScript Editor" to activate works fine if ran directly from Applescript.

I get error:

A property can’t go after this identifier. It than highlights Perform AppleScrip

I looked in the manual where there is an example of how to copy paste to a ApplewWorks document and as such I can see nothing wrong with my formulation.

Anybody know why this happens?

FYI I am on FMP 11 on OS 10.6.6

Hi,

I've written some Applescript but I'm no expert. Rather than, in effect, telling Filemaker to open AppleScript Editor (why?), you'd be better off writing your Apple Script in the editor (or in Automator even easier), saving it as an Application, then using the perform AppleScript script step (Native AppleScript) with the TELL directed at FINDER to activate your saved "application" as long as the AppleScript you've saved does everything you need. If not, open it up again, fix it, and re-save.

I think I've said it correctly, but I'm sure others are more familiar with this, so correct away!

RW.

Link to comment
Share on other sites

I believe you have to escape the quotes:

"tell application \"AppleScript Editor\" to activate"

I'm not on a Mac at the moment... that may be true only in the Calculated (vs. Native) AppleScript options.

Also maybe try leaving out the "to" and/or putting it in the format:

"tell application \"AppleScript Editor\"

activate

end tell"

Link to comment
Share on other sites

I believe you have to escape the quotes:

"tell application \"AppleScript Editor\" to activate"

I'm not on a Mac at the moment... that may be true only in the Calculated (vs. Native) AppleScript options.

Also maybe try leaving out the "to" and/or putting it in the format:

"tell application \"AppleScript Editor\"

activate

end tell"

Sorry for delay, somehow I do not get an email when you post.

Good thinking ill give it a go.

Link to comment
Share on other sites

This topic is 4323 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
 Share

×
×
  • Create New...

Important Information

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