The truncation you are seeing, I see also (now). This may be why Apple
provides not just "action=new" but "action=append" in its implementation of
the applescript://com.scripteditor.plist URL.

Imbedding the script in an HTML message is a little more secure because the
entire script should be there, but it appears to truncate as well. The flaw
may lie in the script Apple provides to encode a script for the URL; I'll
have to check. Furthermore, making it into an HTML message is tedious!

To do it, I had to create an HTML document using an HTML editor (I used
BBEdit, and all I needed was the basic document outline, <HTML><BODY> and so
on; it probably could be done in TextEdit using a template for the HTML
shell). Since I was quoting another message, I had to copy that text out of
Entourage and paste it into BBEdit, and surround paragraphs with the
appropriate HTML paragraph tags. Then, I created the script URL, first
copying the script from Script Editor, then converting it using Apple's
Encode_script script, and pasting the resulting <A HREF> tag into the HTML
document, which I then saved.

I then opened that document in WORD, which renders it much like a browser
would because of the HTML tags it sees (I also named the file with a .html
suffix). Using Word's File menu, I selected Send To Recipient as HTML; this
created the actual message back in Entourage! Whew!

No doubt, once we get the hang of this, one of the more competent scripters
can further automate this entire process. It will be a fun project. I'll
work on it, a little at a time, but I suspect someone else might beat me to
it.

On the other hand, I also like the method Mickey used of simply posting a
tiny URL (although he used some other service--snipurl.com). He browsed to
my website, where I have uploaded my scripts, and copied the URL of a
download file, which he then submitted for "snipping" to the snipurl.com
site; he then mailed the short URL out, which was a direct download link for
my script. Not _quite_ as sexy as having it open right in Script Editor, but
better than posting the source or posting the long URL.

I'd like to get the AppleScript:// url working, though. I'll keep trying.

Just did a test, sending a message from Netscape's HTML mail. It also gets
truncated! The original message definitely has the entire script in it, but
what I receive in Entourage is cut off after maybe 3.5 lines. Not sure where
the flaw is here. I'll bet that if I put a "load in script editor" URL up on
a web page, it will work; this is some problem with long URLs and mail, I
think.

On or near 7/3/04 11:50 AM, Tom Chirpich at [EMAIL PROTECTED] observed:

> I get a script in the script editor when clicking on the link in the
> original message. However, something may have truncated the script, as I get
> an error when I try to compile the script (something about �end of script
> found but else expected,� if I remember correctly).
> 
> This link and the tinyurl�s (in another message) for getting scripts into
> the script editor are interesting/promising. In Allen�s message in this
> thread, the source of the message contains the script at the point of the
> link. (Related to this: a script also is in the source of the Applescript
> web page listed by Allen in the tinyurl thread; the script there is at the
> �Click here for a script....� section of that page.)
> 
> Thanks to Allen for being a pioneer. What�s that saying about �bleeding
> edge�?
> 
> As I understand the Applescript page, Apple doesn�t let the script run
> automatically, just the loading into the script editor.
> 
> 
> on 7/3/04 1:05 AM, Allen Watson at [EMAIL PROTECTED] wrote:
> 
>> On or near 7/2/04 5:32 PM, Dan Frakes at [EMAIL PROTECTED] observed:
>>>> Care to share? :-)
>>>> 
>>>> I've assigned keyboard shortcuts (via System Preferences) to the following
>>>> commands:
>>>> 
>>>> Increase Quoting: shift+command+>
>>>> Remove Quoting: shift+command+<
>>>> Rewrap Paragraphs: shift+command+? (mainly because it's right next to the
>>>> other two)
>>>> 
>>>> So when I want to decrease quoting by one level, I generally use the
>>>> keyboard shortcuts to remove quoting and then increase back to the desired
>>>> level. But a "Decrease Quoting" script would be nice.
>> Try the script you'll get from this URL:
>> Decrement Quote Level
>> 
<applescript://com.apple.scripteditor?action=new&amp;script=%2D%2D%20Decremen>>
t
>> 
%20Quote%20Level%0Don%20run%20%7B%7D%0D%09if%20not%20CheckMessageWindow%28%29>>
%
>> 
20then%20return%0D%09tell%20application%20%22Microsoft%20Entourage%22%0D%09%0>>
9
>> activate%0D%09%09set%2>
>> -- To unsubscribe: archives: old-archive:
> 
> 


--
To unsubscribe:
<mailto:[EMAIL PROTECTED]>
archives:
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to