October 2, 200520 yr 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
October 2, 200520 yr Author 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.
October 2, 200520 yr Author 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
October 10, 200520 yr Small but important syntax change required: set field "commentaire" of current record to (the clipboard)
Create an account or sign in to comment