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: "Mills, Steve" <email@hidden>
- Date: Fri, 27 Jun 2014 20:24:42 +0000
- Thread-topic: Do we have a shortcut key to clear the console in Xcode now?
On Jun 27, 2014, at 15:13:12, Alex Zavatone <email@hidden> wrote:
> Awesome. That answers that.
>
> I wanted to set up a rule/behaviour to clear the console before every run.
>
> Along these lines, within Xcode 5's preferences under Behaviours, there is an option for Xcode to execute a script upon an event.
>
> According to the Xcode docs (https://developer.apple.com/library/mac/recipes/xcode_help-alerts_preferences/Recipe.html), to execute a script upon an event "The script must be an executable file. ".
>
> Which "executable file(s)" are supported?
>
> I just built a simple AppleScript app to press ⌘ k and when an app runs and it's not selectable from the Choose Script… button in Behaviour Preferences.
>
> What type of executable file do I need to work with this?
We use .sh scripts for those. You could do something like this in a shell script:
#! /bin/sh
osascript "/path/to/your/applescript"
Save that to something like "RunMyClearConsoleAppleScript.sh" and point the behavior at it.
--
Steve Mills
office: 952-818-3871
home: 952-401-6255
_______________________________________________
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