Re: Setting signatures in Mail.app from osascript
Re: Setting signatures in Mail.app from osascript
- Subject: Re: Setting signatures in Mail.app from osascript
- From: Laine Lee <email@hidden>
- Date: Fri, 11 Apr 2008 12:54:54 -0500
- Thread-topic: Setting signatures in Mail.app from osascript
Title: Re: Setting signatures in Mail.app from osascript
On 4/10/08 8:18 AM, "LuKreme" <email@hidden> wrote:
> No one has any idea why this script works as a script editor script
> but not as a osascript?
I’m using 10.5.2.
I'm running these in Script Editor. Technote 2065 suggests this.
set myname to system attribute "USER"
set shellscrpt to "ps -c -U " & myname & " | awk '/Mail/{print $4}'"
do shell script "echo" & space & shellscrpt & space & "| /bin/bash"
--> ""
But...
set myname to system attribute "USER"
set shellscrpt to "ps -c -U " & myname & " | awk '/Mail/{print $4}'"
do shell script "echo" & space & (quoted form of shellscrpt) & space & "| /bin/bash"
--> "Mail"
I can’t find a way to quote shellscrpt in the above example to get the
same answer, not even with Smile.
I think you may have to let Applescript build an executable file complete
with the shebang, give it the proper permissions, then execute it, then
delete it if needed.
--
Laine Lee
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden