Extracting title and URL
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=Vician;21300]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] That got it. Thanks, Vician. |
All times are GMT -8. The time now is 09:49 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.