Jump to content

How can I do Paste cell in Sherlock


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

Recommended Posts

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.

Link to comment
Share on other sites

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