Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clear all breakpoints




On Oct 18, 2007, at 11:43 AM, Jim Wrenholt wrote:

I tried this and it's not working for me. I have never created a user script before so I'm probably missing something obvious?

Yep. The first line "#! /bin/sh" is telling the OS that you want to run /bin/sh and give it the script file. Then when you have "#!/usr/ bin/osascript" it's just a comment so it gets ignored. Since the script I wrote was apple script and not bourne shell script, it chokes. You want "#!/usr/bin/osascript" as the first line so that the OS runs that.


I don't know if # are counted as comments by applescript or not so I can't predict what leaving the rest of those comments in will do.

#! /bin/sh
#
# 15-clearbreakpoints.sh - clear all breakpoints.
#
# -- PB User Script Info --
# %%%{PBXName=Clear All Breakpoints}%%%
# %%%{PBXInput=None}%%%
# %%%{PBXOutput=Discard}%%%
# %%%{PBXKeyEquivalent=@~$B}%%%

#!/usr/bin/osascript
tell application "Xcode" to delete breakpoints of front project

-- Steve Checkoway



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Clear all breakpoints (From: "R.L. Grigg" <email@hidden>)
 >Re: Clear all breakpoints (From: Chris Espinosa <email@hidden>)
 >Re: Clear all breakpoints (From: Laurence Harris <email@hidden>)
 >Re: Clear all breakpoints (From: Steve Checkoway <email@hidden>)
 >Re: Clear all breakpoints (From: Steve Checkoway <email@hidden>)
 >Re: Clear all breakpoints (From: Jim Wrenholt <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.