Re: Creating Text Notes From Safari Script
Re: Creating Text Notes From Safari Script
- Subject: Re: Creating Text Notes From Safari Script
- From: has <email@hidden>
- Date: Sun, 12 Jan 2003 19:48:17 +0000
Johnny AppleScript wrote:
Just thought we'd contribute a script we slapped together to quell
frustration with Safari's inability to drag-n-drop selected text to a Text
Clipping,
No drag-n-drop is decidedly odd. Have you reported this? That'd be
the best thing to do.
We're also looking for, or need to write a script that will emulate MSIE 5's
'Scrapbook' feature; we need to be able to save complete, working pages,
including user-entered form content.
Emulating IE's all-in-one-file and retained-form-data features with
AS is probably impossible; the rest difficult. You'd have to:
- parse the html file
- rewrite all relative paths in href attributes as absolute
- extract paths from <script>, <style>, <img>, <object>, etc. tags
- download those files (avoiding any filename conflicts) to a new
folder alongside the saved html file
- rewrite the aforementioned paths as relative links to the
newly-downloaded files.
Then there's dependencies and links in downloaded .js and .css files
to consider... maybe other things too. Frankly, I'd recommend
sticking with IE/Netscape/Chimera/whatever for this task, even if you
do use Safari the rest of the time. Your best choice would be one
which saves everything as ordinary files: these will open in Safari,
whereas IE's proprietary format won't.
has
--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of AppleScripts
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.