• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Do we have a shortcut key to clear the console in Xcode now?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 17:16:15 -0400

Jeebus.  The damn file window in Xcode wasn't updating the file list to show that it is valid.

In case someone else will find this useful:

Here is the little beast:
#!/usr/bin/osascript

activate application "Xcode"
tell application "System Events" to keystroke "k" using command down


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.

So, with a little script like this, you can activate menus or command keys or even click elements on Xcode's screen if you have GUI scripting enabled and can find the path to the element you want.  For that, I use UI Browser and from PFiddleSoft and Apple's own UIElementInspector or Accessibility Inspector, which is a Developer Tool that is installed inside of Xcode.

http://pfiddlesoft.com/uibrowser

Cheers and thanks for the tips to get this running.

- Alex Zavatone


On Jun 27, 2014, at 4:48 PM, Mills, Steve wrote:

> On Jun 27, 2014, at 15:42:56, Alex Zavatone <email@hidden> wrote:
>
>> Oddly, Xcode 5.1 refuses to allow me to select any plain text file, AppleScript file, or bash script ending in .sh for a behaviour script
>>
>> What file format/naming convention is required here?
>>
>> It's issues like this that makes me want to bludgeon the people who almost documented this part of the product.
>
> If it says it needs to be executable, then turn on its executable bit in Terminal:
>
> chmod u+x /path/to/your/file.sh
>
> --
> 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

 _______________________________________________
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


  • Follow-Ups:
    • Re: Do we have a shortcut key to clear the console in Xcode now?
      • From: Wayne J <email@hidden>
References: 
 >Do we have a shortcut key to clear the console in Xcode now? (From: Alex Zavatone <email@hidden>)
 >Re: Do we have a shortcut key to clear the console in Xcode now? (From: "Mills, Steve" <email@hidden>)
 >Re: Do we have a shortcut key to clear the console in Xcode now? (From: Alex Zavatone <email@hidden>)
 >Re: Do we have a shortcut key to clear the console in Xcode now? (From: "Mills, Steve" <email@hidden>)
 >Re: Do we have a shortcut key to clear the console in Xcode now? (From: Alex Zavatone <email@hidden>)
 >Re: Do we have a shortcut key to clear the console in Xcode now? (From: "Mills, Steve" <email@hidden>)

  • Prev by Date: Re: Do we have a shortcut key to clear the console in Xcode now?
  • Next by Date: Re: Do we have a shortcut key to clear the console in Xcode now?
  • Previous by thread: Re: Do we have a shortcut key to clear the console in Xcode now?
  • Next by thread: Re: Do we have a shortcut key to clear the console in Xcode now?
  • Index(es):
    • Date
    • Thread