dysong3 Posted October 2, 2005 Posted October 2, 2005 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
dysong3 Posted October 2, 2005 Author Posted October 2, 2005 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.
dysong3 Posted October 2, 2005 Author Posted October 2, 2005 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
bruceR Posted October 10, 2005 Posted October 10, 2005 Small but important syntax change required: set field "commentaire" of current record to (the clipboard)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now