Re: adding script execution to any contextual menu
Re: adding script execution to any contextual menu
- Subject: Re: adding script execution to any contextual menu
- From: "Gary (Lists)" <email@hidden>
- Date: Tue, 25 Oct 2005 06:39:19 -0400
"Mieke Banderas (viaMikael Byström <email@hidden>)" wrote:
> Do anyone know of an application, system addon or similar that can add script
> execution to an existing contextual menu or even better assist in building a
> contextual menu (a popup) that can be called with some key- click combo? In
> the latter case I'd also like to put in object references (folders) in the
> menu, perhaps even replicating the internal folder hierarchy from the
> application.
>
> I neeed such a solution for a convenient way to select messages by hand in
> email client PowerMail and process them with a script and/or make choices.
>
> I found very little googling and at versiontracker.
>
> What do you guys think the options are? Have you done anything similar?
I am not sure exactly what you are looking for, but if I understand the
general question, then I would recommend that you explore "On My Command".
OMC is a free software from Abracode, and is an extensible contextual menu
system. You can build a macro to run any OSX-installed code, by contextual
menu, either on selected Finder objects, clipboards, selections, and so
forth.
The flexibility is also the drawback: scripts are written in the OMC macro
language. While this macro language is not hard, it is "another layer" of
language to deal with. The language is quite robust, even allowing access to
nib files and other interface elements. Macro scripts (which you run from
your contextual menu) can also be made into stand-alone droplets (with
Droplet Builder.)
Access to the shell and all that that implies is the real power-house here.
You can run any programming language you have installed that you could run
in your shell. PHP, Python, Perl, AppleScript, Tcl, Ruby and so forth.
Scripts are written as XML -- to plist files to be precise.
There are extensive ready-to-run examples in the download archive.
Here is an example of a short script which makes a GZip archive out of the
selected items, just as a taste-test of how it works (you can see the Unix
access and the simplicity in this example.)
<dict>
<key>ACTIVATION_MODE</key>
<string>act_file</string>
<key>COMMAND</key>
<array>
<string>gzip </string>
<string>__OBJ_PATH__</string>
</array>
<key>EXECUTION_MODE</key>
<string>exe_silent</string>
<key>NAME</key>
<string>Compress with gzip</string>
<key>NOTES</key>
<string>GZip your files the Macintosh way!</string>
<key>REFRESH_PATH</key>
<array>
<string>__OBJ_PATH__</string>
<string>.gz</string>
</array>
<key>VERSION</key>
<integer>2</integer>
</dict>
I think it would be worth your time to check it out, given my understanding
of your question, that is.
The Abracode free software page: <http://free.abracode.com/cmworkshop/>
--
Gary
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden