March 27, 201114 yr 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
March 28, 201114 yr 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.
March 28, 201114 yr 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"
March 31, 201114 yr Author 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.
Create an account or sign in to comment