Re: Passing calls to an AS app via shell?
Re: Passing calls to an AS app via shell?
- Subject: Re: Passing calls to an AS app via shell?
- From: Johnny AppleScript <email@hidden>
- Date: Fri, 08 Oct 2004 05:46:11 -0600
On 04/10/08 4:13 AM, "Johnny AppleScript" <email@hidden> wrote:
> Now, I want to know if thereĀ¹s a way to pass the string (hello world) directly
> to a running applet, preferably without the use of osascript.
I've succumbed to a workaround for the moment:
[from JS]
mPath="~/tmp/myTempFile.tmp"
message="echo hello world >> "+ mPath
system(message)
[from AS]
set mPath to "~/tmp/myTempFile.tmp"
set message to do shell script "more " & mPath & " ; rm " & mPath
Does anyone see any problems with this? I would like to write to the User's
'Temporary Items' folder, but I have terrible problems with getting echo to
write to a user path if the user path has spaces in names; yes I've tried
quoting, escaping, etc; it just doesn't like to do it.
Will this fail if the user does not have admin privileges?
TIA -- JA
_______________________________________________
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