Jump to content

go to field with a non FM applescript


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

Recommended Posts

Hi

I want an applescript to copy something to the clipboard in Safari and then to paste it into a given field in Filemaker and I can't work out how to get Applescript to recognize the given field. Would any body be able to help me. Here is my script so far.

tell application "Safari"

activate

tell application "System Events"

tell application process "Safari"

keystroke "c" using command down

keystroke return

end tell

end tell

end tell

tell application "FileMaker Pro"

activate

set field "commentaire" of current record to clipboard

end tell

The line "set field "commentaire" of current record to clipboard" obviously does not work

Link to comment
Share on other sites

Is it possible to get a non Filemaker applescript (that is one that is not running from with Filemaker) to run a Filemaker script? If that is the case my problem is solved. Only I don't know how that script would go.

Link to comment
Share on other sites

Well I'm answering my own question but this may be useful to others. Here is the solution I found

tell application "Safari"

activate

tell application "System Events"

tell application process "Safari"

keystroke "c" using command down

keystroke return

end tell

end tell

end tell

tell application "FileMaker Pro"

activate

tell application "FileMaker Pro"

do script FileMaker script "go_to_field_commentaire"

end tell

end tell

Link to comment
Share on other sites

This topic is 6797 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.