Re: Clear all breakpoints
Re: Clear all breakpoints
- Subject: Re: Clear all breakpoints
- From: Steve Checkoway <email@hidden>
- Date: Thu, 18 Oct 2007 16:04:08 -0700
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:
This email sent to email@hidden