Ziv Kitaro changing Dylan Damian's script from archive to bookmark?
Dec 30, 2006; 06:00
Ziv Kitaro
changing Dylan Damian's script from archive to bookmark?
Hi. been trying to change this very nice script that Dylan Damian created so it will creat a bookmark and not an archive. For some reason I just can't manage this. So far I convinced the script to create a bookmark in Yojimbo but what I get is an untitled item with "http://www.example.com" in the URL and no comments. the only thing that does work is that the new item has the tags I entered in Pukka.
this is the only thing I've changed in the script:
tell application "Yojimbo" set newItem to make new bookmark item with myURL add tags myTags to newItem end tell
Thanks
for ease of reference I'm adding the script here:
-------beginning of script------- -- SafariToPukkaAndYojimbo -- Bookmark current Safari page to del.icio.us and -- archive it with Yojimbo -- by Dylan Damian (dylan.damian@gmail.com) -- Version 0.3.2
tell application "Safari" set myURL to URL of document 1 set myTitle to do JavaScript "document.title" in document 1 set mySelection to do JavaScript "window.getSelection() + ''" in document 1 end tell
tell application "Pukka" set post url to myURL set post title to myTitle if (length of mySelection is not 0) then set post description to mySelection end if
activate set frontmost to true tell window 1 set visible to true end tell
tell application "System Events" if exists process "Pukka" then repeat set windList to every window of application process "Pukka" set windowOpen to count of windList if windowOpen = 0 then exit repeat delay 1 end repeat end if end tell
tell application "Pukka" set myTags to post tags set skip next reset to false end tell
tell application "Yojimbo" set newItem to make new web archive item with contents myURL add tags myTags to newItem end tell
tell application "GrowlHelperApp" -- Make a list of all the notification types -- that this script will ever send: set the allNotificationsList to ¬ {"Success Notification", "Failure Notification"}
-- Make a list of the notifications -- that will be enabled by default. -- Those not enabled by default can be enabled later -- in the 'Applications' tab of the growl prefpane. set the enabledNotificationsList to ¬ {"Success Notification"}
-- Register our script with growl. -- You can optionally (as here) set a default icon -- for this script's notifications. register as application ¬ "SafariToPukkaAndYojimbo" all notifications allNotificationsList ¬ default notifications enabledNotificationsList ¬ icon of application "Yojimbo"
-- Send a Notification... notify with name ¬ "Success Notification" title ¬ "Import Success" description ¬ "Successfully imported \"" & myURL & ¬ "\" to Yojimbo" application name "SafariToPukkaAndYojimbo"
notify with name ¬ "Failure Notification" title ¬ "Import Failure" description ¬ "Alas — you won't see me until you enable me..." application name "SafariToPukkaAndYojimbo"
end tell -------end of script
Dec 30
Brian Yamabe Re: changing Dylan Damian's script from archive to bookmark?
Dec 30, 2006; 08:11
Brian Yamabe
Re: changing Dylan Damian's script from archive to bookmark?
Dec 30
Ziv Kitaro Re: changing Dylan Damian's script from archive to bookmark?
Dec 30, 2006; 13:02
Ziv Kitaro
Re: changing Dylan Damian's script from archive to bookmark?
Dec 30
Brian Yamabe Re: changing Dylan Damian's script from archive to bookmark?
Dec 30, 2006; 16:00
Brian Yamabe
Re: changing Dylan Damian's script from archive to bookmark?
Dec 30
Ziv Kitaro Re: changing Dylan Damian's script from archive to bookmark?
Dec 30, 2006; 23:14
Ziv Kitaro
Re: changing Dylan Damian's script from archive to bookmark?
Dec 30
Brian Yamabe Re: changing Dylan Damian's script from archive to bookmark?
Dec 30, 2006; 16:24
Brian Yamabe
Re: changing Dylan Damian's script from archive to bookmark?
Dec 31
Jim Correia Re: changing Dylan Damian's script from archive to bookmark?
Dec 31, 2006; 07:45
Jim Correia
Re: changing Dylan Damian's script from archive to bookmark?
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!