Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
stupid question
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="trey5498" data-source="post: 623712" data-attributes="member: 50557"><p>I am trying to write a script that will allow to install printers onto MacBooks Laptops. I have the script pretty much written in shell script,however, I am working on a gui that will allow the user to select the printers (only 1 or any number of multiple choices) with a select all button (which I am not sure how to code). I am stuck in Macs view on C++. I tried to use applescript, however it seems to throw some weird exited due to signal 5 (SIGTRAP). I have narrowed this error down to the applescript that compiles just fine in the script editor, but doesn't work in Xcode.</p><p></p><p>Is there some compatibility issues with applescript 2.1.1 and xcode 2.0 on 10.4.1 on PPC? My office is getting me a new MacBook pro with leopard. The stupid question comes in the form of: How on earth do you code the Cancel button first? </p><p></p><p>I have used</p><p></p><p>-(IBAction) cancelButton<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" />id)sender</p><p>{</p><p></p><p> [cancelButton:exit];</p><p></p><p>}</p><p></p><p>However it doesn't seem to work. Can someone point me in the right direction to get the GUI to call .sh files, get cancel button to work, the select all checkbox and finally the applescript compatibility.</p></blockquote><p></p>
[QUOTE="trey5498, post: 623712, member: 50557"] I am trying to write a script that will allow to install printers onto MacBooks Laptops. I have the script pretty much written in shell script,however, I am working on a gui that will allow the user to select the printers (only 1 or any number of multiple choices) with a select all button (which I am not sure how to code). I am stuck in Macs view on C++. I tried to use applescript, however it seems to throw some weird exited due to signal 5 (SIGTRAP). I have narrowed this error down to the applescript that compiles just fine in the script editor, but doesn't work in Xcode. Is there some compatibility issues with applescript 2.1.1 and xcode 2.0 on 10.4.1 on PPC? My office is getting me a new MacBook pro with leopard. The stupid question comes in the form of: How on earth do you code the Cancel button first? I have used -(IBAction) cancelButton:(id)sender { [cancelButton:exit]; } However it doesn't seem to work. Can someone point me in the right direction to get the GUI to call .sh files, get cancel button to work, the select all checkbox and finally the applescript compatibility. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
stupid question
Top