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