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


Click here to return to the 'Share ANY video... as an email template' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Share ANY video... as an email template
Authored by: it-spud on Jul 15, '10 01:15:09PM

I found this handy example, and figured I could make a script that does the same basics as this does, but not attempt to manage the URL... Just embed any code I want to paste.

I fought with sed over punctuation for a bit and then decided to make the script simpler.

The template contains a key phrase.
"embed-video-code-here"

This phrase is used to mark where the code should be placed. The entire line of text is replaced; white space is ignored... so tags that enclose the placeholder should reside on their own rows.

Using grep to find it, and wc to get a total count...
The script copies the template head to the live stationery 'content.html' from the template 'content_template.html'.
Then the code is copied to the file (after escaping double quotes for the echo)
And finally the tail of the template file.

Lastly, opens the template.

See the files here: (zipped for convenience.)
http://metroeast.org/documents/eVideo_Mail_Stationery_Script.zip

You'll want to double click the stationery file to install it, and you may place the script wherever it is handy for you (the user's script folder is a good place.)



[ Reply to This | # ]
Share ANY video... as an email template
Authored by: it-spud on Jul 21, '10 12:23:29PM

I've just updated my script and the stationery. The stationery was installing in Mail.app using a file name derived from the plist 'Display Name'.

I have updated the plist and the script to use a new name 'EmbedVideo' instead of eVideo. Hopefully no-one has the old verison. The same link takes you to an updated zip file.

One problem that seems to persist. Upon installing, Mail.app opens a new message with the stationery browser disclosed... and the new stationery selected. This new message is not closable, but Mail.app will quit. When relaunched the message is present (and open), but no longer 'stuck'.. it can now be closed. After this odd issue, the stationery and the script work as expected.



[ Reply to This | # ]