RICKY Posted December 11, 2002 Posted December 11, 2002 How can I do Paste cell in Sherlock 2 in Os 9.2.2 with a applescript like copy cell in a db then paste in sherlock. Thanks!!
jfmcel Posted December 12, 2002 Posted December 12, 2002 The script below was modified from a sample script provided by Apple with OS X. It doesn't produce consistent results, at least with OS X. property search_sites : {"AltaVista", "Excite", "Infoseek", "Lycos"} tell application "FileMaker Pro" to set search_string to cell "Text" of current record tell application "Sherlock" activate --delay 8 no longer needed --select search sites {} in channel "Internet" --select search sites search_sites in channel "Internet" search Internet search_sites for the search_string with display end tell If you just want to do a web search, try the script below... property URLGooglePrefix : "http://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&q=" tell application "FileMaker Pro" to set theSearchCriteria to cell "Text" of current record set theCharacterList to every character in theSearchCriteria set theCharacterCount to count of theCharacterList repeat with i from 1 to theCharacterCount if item i in theCharacterList = " " then set item i of theCharacterList to "+" end if end repeat set theSearchCriteria to theCharacterList as string set theUrl to URLGooglePrefix & theSearchCriteria open location theUrl This performs a google search in the user's default browser.
Recommended Posts
This topic is 8019 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