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
Run bash script via button in interface builder?
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="xstep" data-source="post: 1188503" data-attributes="member: 11647"><p>I've only done a little Applescript coding and never used Xcode for it. I don't know if the following is possible.</p><p></p><p>I'd look at adding the shell script to the 'Other Resources' folder in Xcode, and then looking for a function in Applescript that can refer to the location it was loaded from so that you could reference the script that would be in your app hierarchy.</p><p></p><p>To get the path to your current Applescript, I found the following maybe the answer;</p><p>[CODE]set myAppFolder to ((path to me) as text)[/CODE]</p><p></p><p>Perhaps someone with more experience will speak up.</p></blockquote><p></p>
[QUOTE="xstep, post: 1188503, member: 11647"] I've only done a little Applescript coding and never used Xcode for it. I don't know if the following is possible. I'd look at adding the shell script to the 'Other Resources' folder in Xcode, and then looking for a function in Applescript that can refer to the location it was loaded from so that you could reference the script that would be in your app hierarchy. To get the path to your current Applescript, I found the following maybe the answer; [CODE]set myAppFolder to ((path to me) as text)[/CODE] Perhaps someone with more experience will speak up. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Run bash script via button in interface builder?
Top