Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Apps and Programs
Synchronize Omniweb Bookmarks & Favorites
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="voiceofra" data-source="post: 362119" data-attributes="member: 28040"><p>Just flexing my Applescript muscles here....</p><p></p><p><a href="http://foxmarks.com" target="_blank">Foxmarks</a> allows Firefox users to synchronize their bookmarks to and from a remote location (because the bookmarks are stored on Foxmarks’ own servers, if they go belly up, you’d better have a backup plan for the backup).</p><p>Safari has an Applescript equivalent called <a href="http://www.nadamac.de/safari/safaridepot/" target="_blank">SafariDepot</a>. The nice thing about it is that <em>YOU</em> determine where to store them without having to depend on a 3rd party’s server.</p><p>Omniweb may have something equally useful, but I don’t know. I didn’t bother checking.</p><p>Instead, I wrote my own set of Applescripts to do the uploading and downloading.</p><p></p><p><strong>Uploader</strong></p><p>Copy the following code in to Script Editor and save it as a script in <em>~/Library/Scripts/Applications/Omniweb</em>.</p><p></p><p>[CODE]set ftpuser to “username” --replace username with your own ftp username</p><p>set ftpPwd to “password” --replace password with your own ftp password</p><p>set ftpLocation to “ftp://ftp.whatever.wherever.com/” --change to your ftp server and don’t forget the ending slash!!</p><p></p><p>--Upload</p><p>do shell script “curl -u ” & ftpuser & “:” & ftpPwd & ” -T ~/Library/Application\\ Support/OmniWeb\\ 5/Bookmarks.html ” & ftpLocation</p><p>do shell script “curl -u ” & ftpuser & “:” & ftpPwd & ” -T ~/Library/Application\\ Support/OmniWeb\\ 5/Favorites.html ” & ftpLocation</p><p>display dialog “Bookmarks & Favorites uploaded” buttons {”OK”} default button 1 giving up after 3 --comment this whole line if you don’t need confirmation</p><p>[/code]</p><p><strong>Downloader</strong></p><p>Copy the following code in to Script Editor and save it as a script in <em>~/Library/Scripts/Applications/Omniweb</em>.</p><p>In order to see the new/synchronized bookmarks/favorites, Omniweb will need to be restarted.</p><p>I wrote the script to do this automatically, with a prompt to stop or continue.</p><p></p><p>[CODE]set ftpuser to “username” [I]--replace username with your own ftp username[/I]</p><p>set ftpPwd to “password” [I]--replace password with your own ftp password[/I]</p><p>set ftpLocation to “ftp://ftp.whatever.wherever.com/” --don’t forget the ending slash!!</p><p>display dialog “Omniweb must quit before downloading Bookmakrs & Favorites” buttons {”Stop! Do it later!”, “Okay, do it now.”} default button 2</p><p>if button returned of the result = “Stop! Do it later!” then</p><p>stop</p><p>else</p><p>tell application “OmniWeb” to quit</p><p>delay 3</p><p>do shell script “curl -u ” & ftpuser & “:” & ftpPwd & ” ” & ftpLocation & “/Favorites.html -o ~/Library/Application\\ Support/OmniWeb\\ 5/Favorites.html”</p><p></p><p>do shell script “curl -u ” & ftpuser & “:” & ftpPwd & ” ” & ftpLocation & “/Bookmarks.html -o ~/Library/Application\\ Support/OmniWeb\\ 5/Bookmarks.html”</p><p>tell application “OmniWeb” to activate</p><p>end if[/CODE]</p><p></p><p>Use it, modify it, enjoy it, whatever.</p></blockquote><p></p>
[QUOTE="voiceofra, post: 362119, member: 28040"] Just flexing my Applescript muscles here.... [URL="http://foxmarks.com"]Foxmarks[/URL] allows Firefox users to synchronize their bookmarks to and from a remote location (because the bookmarks are stored on Foxmarks’ own servers, if they go belly up, you’d better have a backup plan for the backup). Safari has an Applescript equivalent called [URL="http://www.nadamac.de/safari/safaridepot/"]SafariDepot[/URL]. The nice thing about it is that [I]YOU[/I] determine where to store them without having to depend on a 3rd party’s server. Omniweb may have something equally useful, but I don’t know. I didn’t bother checking. Instead, I wrote my own set of Applescripts to do the uploading and downloading. [B]Uploader[/B] Copy the following code in to Script Editor and save it as a script in [I]~/Library/Scripts/Applications/Omniweb[/I]. [CODE]set ftpuser to “username” --replace username with your own ftp username set ftpPwd to “password” --replace password with your own ftp password set ftpLocation to “ftp://ftp.whatever.wherever.com/” --change to your ftp server and don’t forget the ending slash!! --Upload do shell script “curl -u ” & ftpuser & “:” & ftpPwd & ” -T ~/Library/Application\\ Support/OmniWeb\\ 5/Bookmarks.html ” & ftpLocation do shell script “curl -u ” & ftpuser & “:” & ftpPwd & ” -T ~/Library/Application\\ Support/OmniWeb\\ 5/Favorites.html ” & ftpLocation display dialog “Bookmarks & Favorites uploaded” buttons {”OK”} default button 1 giving up after 3 --comment this whole line if you don’t need confirmation [/code] [B]Downloader[/B] Copy the following code in to Script Editor and save it as a script in [I]~/Library/Scripts/Applications/Omniweb[/I]. In order to see the new/synchronized bookmarks/favorites, Omniweb will need to be restarted. I wrote the script to do this automatically, with a prompt to stop or continue. [CODE]set ftpuser to “username” [I]--replace username with your own ftp username[/I] set ftpPwd to “password” [I]--replace password with your own ftp password[/I] set ftpLocation to “ftp://ftp.whatever.wherever.com/” --don’t forget the ending slash!! display dialog “Omniweb must quit before downloading Bookmakrs & Favorites” buttons {”Stop! Do it later!”, “Okay, do it now.”} default button 2 if button returned of the result = “Stop! Do it later!” then stop else tell application “OmniWeb” to quit delay 3 do shell script “curl -u ” & ftpuser & “:” & ftpPwd & ” ” & ftpLocation & “/Favorites.html -o ~/Library/Application\\ Support/OmniWeb\\ 5/Favorites.html” do shell script “curl -u ” & ftpuser & “:” & ftpPwd & ” ” & ftpLocation & “/Bookmarks.html -o ~/Library/Application\\ Support/OmniWeb\\ 5/Bookmarks.html” tell application “OmniWeb” to activate end if[/CODE] Use it, modify it, enjoy it, whatever. [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
Synchronize Omniweb Bookmarks & Favorites
Top