[X-Unix] Any way to email a doubleclickable shell script?
Alexandre Gauthier
alex at underwares.org
Wed Jan 23 15:11:28 PST 2008
Silly idea:
What happens if you sitx or pack it in an archive that preserves permissions?
Worse case scenario, put it in a disk image with the correct permissions?
Envoyé de mon terminal mobile BlackBerry par le biais du réseau de Rogers Sans-fil
-----Original Message-----
From: Jerry Krinock <jerry at ieee.org>
Date: Wed, 23 Jan 2008 15:06:36
To:Mac OS X Unix <X-Unix at listserver.themacintoshguy.com>
Subject: [X-Unix] Any way to email a doubleclickable shell script?
I've created a shell script, actually a perl script, and given it
a .command extension, so it executes on my Mac when I doubleclick it.
I'd like to email it to a non-Terminal-savvy user. But when I attach
the file to an email, send it, receive it, and save the attachment to
the desktop, the email client (Microsoft Entourage) writes it with
octal '644' permissions, so it won't execute.
Is there any way around this?
(I've tried for the last half hour to wrap it in "perl -e
'MY_SCRIPT'", and then double-wrap it in an AppleScript, with "do
shell script". But backslash-escaping these wrappers is very
difficult; still no success after 30 minutes of hacking. I suppose
this can be done, but it won't be very fun or very readable.)
Thanks,
Jerry Krinock
_______________________________________________
X-Unix mailing list
X-Unix at listserver.themacintoshguy.com
http://listserver.themacintoshguy.com/mailman/listinfo/x-unix
More information about the X-Unix
mailing list