The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniWeb > OmniWeb General
FAQ Members List Calendar Today's Posts

 
Extracting title and URL Thread Tools Search this Thread Display Modes
I prefer to keep bookmarks in a database. I need to build an AppleScript that will extract the title and URL from the current page, and copy them to the clipboard as a single text string with the URL in brackets, like this:

The Omni Group <http://www.omnigroup.com/>

I don't know enough about AppleScript to make this happen. Can someone help?

Thanks,
dp
 
I'm not great at AppleScript, I've only wrote one for VisualHub thus far, but this does what you want:

tell application "OmniWeb"
set bookInfo to GetWindowInfo
set the clipboard to item 2 of bookInfo & " <" & item 1 of bookInfo & ">"
end tell
 
Quote:
Originally Posted by Vician View Post
I'm not great at AppleScript, I've only wrote one for VisualHub thus far, but this does what you want:

tell application "OmniWeb"
set bookInfo to GetWindowInfo
set the clipboard to item 2 of bookInfo & " <" & item 1 of bookInfo & ">"
end tell
That got it. Thanks, Vician.
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
creating outline by extracting annotations from PDF jwvgoethe OmniOutliner 3 for Mac 3 2012-02-09 11:27 AM
Extracting image from browser cache Ivo OmniWeb General 1 2011-04-30 11:22 AM
Extracting Data Simply? egrFocused Applying OmniFocus 4 2010-11-10 06:46 AM
Extracting Notes to Rows tokyowagon OmniOutliner 3 for Mac 0 2007-07-23 04:40 PM
Extracting Useful Data seema OmniPlan General 2 2007-07-16 05:53 AM


All times are GMT -8. The time now is 08:19 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.