Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'An AppleScriptt to publish Address Book as HTML' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScriptt to publish Address Book as HTML
Authored by: osxpounder on May 19, '05 02:34:50PM

When I click the link, Safari displays your AppleScript on the screen. I tried copying and pasting it into Script Editor, but all the line breaks were wrong, and SE keeps hitting me with errors because it expected and "end of line".

I tried Option-clicking the link, but I keep getting a 0 bytes file. I don't understand. It's a text file, and it's obviously in the right place -- Safari won't download it.

I'd love to try this darn script, but right now I don't see another way than to go through it and manually replace all the line breaks. I tried using SE's Find & Replace to change each instance of "my" to "\n\nmy", but that didn't work. SE just shows me "\n\nmy" in my script instead of interpreting that as two new line commands preceding the word "my".

Next I tried TextWrangler, and found I could use "\r\rmy", for example. Nevertheless, SE still refused to compile, this time giving me an error I can't see a solution for. It says, "Expected "," or ")" but found end of line", but the code looks exactly the same as it does in other places, above that spot, that don't give the error. I tried deleting and retyping. No go.

What must I do to get this script into SE properly?


[ Reply to This | # ]
Try curling it
Authored by: jecwobble on May 19, '05 03:15:19PM

I had similar problems. I decided to use curl.

cd ~/Desktop
curl -o ab2html_scpt.txt

[ Reply to This | # ]