Re: a.out
Re: a.out
- Subject: Re: a.out
- From: Doug McNutt <email@hidden>
- Date: Mon, 11 Jul 2011 15:56:02 -0600
At 13:10 -0700 7/11/11, louie wrote:
>Hi all I am trine to run a c program that I compiled using gcc. The a.out runs in terminal but will not run from a apple script. Help please script below.
>tell application "Finder"
> activate
> set w to do shell script "~/Desktop/A.out"
> say w
>
>end tell
I haven't seen that since about OS 7. Serial port? On what?
a.out instead of A.out? My disk is configured case sensitive to better match real UNIX.
Are you depending on a profile or rc startup for your shell. It won't get run. Very few environment variables are preset.
I don't know if the ~ symbol gets defined either. Try a full path.
Do you really need Finder? I can see it messing with the POSIX file path. Perhaps it needs "quoted form of "
Is the execute bit set on a.out? For everyone?
--
--> A fair tax is one that you pay but I don't <--
_______________________________________________
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
References: | |
| >a.out (From: louie <email@hidden>) |