Thanks. The AppleScript line works for my purposes. When I have all the
details ironed out, I'll post the bundle if you like.
Alexander Kucera
\ Lighting TD & Compositor — Founder & Lead Artist at BabylonDreams
— The Foundry certified Nuke Trainer
\ Neustadt, Germany GMT +1 \ App.net: AlexK \ Skype: marvinthemartian
On 21 Sep 2014, at 12:26, Benny Kjær Nielsen wrote:
On 21 Sep 2014, at 9:56, Alexander Kucera wrote:
is it possible to query the user for input when running a bundle?
Yes, you could, for example, use AppleScript for this. The hardest
part is finding [the
documentation](https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_cmds.html#//apple_ref/doc/uid/TP40000983-CH216-SW12).
Here is a useful one-liner:
osascript -e 'tell app "System Events" to return text returned of
(display dialog "Give me some text" default answer "")'
I am working on a bundle to send stuff to Studiometry and it allows
linking to a project ID, which is usually not present in the email,
so I thought I'd just input it before exporting to Studiometry (where
it is much more tedious to change the linking afterwards).
The alternative would be to use tagging for that I guess and tag my
emails beforehand with the project ID.
That could work as well, but you might end up with a lot of tags.
What would be the correct syntax to pass my tagging info over to a
bundle?
That's not straightforward. I think one would have to pass `#flags`
(space-separated list) to the script and then search for the IMAP
keyword of the tag.
--
Benny
_______________________________________________
mailmate mailing list
[email protected]
http://lists.freron.com/listinfo/mailmate
_______________________________________________
mailmate mailing list
[email protected]
http://lists.freron.com/listinfo/mailmate