Re: Do we have a shortcut key to clear the console in Xcode now?
Re: Do we have a shortcut key to clear the console in Xcode now?
- Subject: Re: Do we have a shortcut key to clear the console in Xcode now?
- From: Alex Zavatone <email@hidden>
- Date: Fri, 27 Jun 2014 18:20:31 -0400
Well, yeah, I am. Based on the wording, it's pretty easy to do.
Since that happens at the time the script is being executed, it's not clear the context of the error message. The wording certainly could be clearer in this case.
Xcode is triggering a script to run and that script is running an executable which executes a script.
The exact error message is "Failed to launch script /Users/alexzavatone/Documents/con.sh: The operation couldn't be completed. No such file or directory."
That error message makes it look like Xcode can't see the file in the path it mentioned, not that a command within that file has failed.
Considering that it was hard enough to get Xcode to actually see the script in the first place, it's pretty easy to take that message and think that Xcode is failing to see the file that it just mentioned has the error.
Now, I know it's an Alex error, but it's really easy to misinterpret what the error is applying to.
On Jun 27, 2014, at 5:41 PM, Wayne J wrote:
>
> On Jun 27, 2014, at 2:16 PM, Alex Zavatone <email@hidden> wrote:
>
>> Also, note that if you misspell the path to osascript, Xcode will tell you that your file doesn't exist, even though it's found the file and tried executing it.
>
> You misunderstand the error message. The #! tells the OS that the file in question can be executed with an interpreter (/usr/bin/osascript in this case.) You misspelled the name so when it goes looking for the program list after the #! it can’t find it.
>
> Wayne
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden