Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

Small but important syntax change required:

set field "commentaire" of current record to (the clipboard)

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