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
Apple Computing Products:
macOS - Apps and Programs
Create a executable file for mac
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="Capelo" data-source="post: 395080" data-attributes="member: 30306"><p>well, just got it. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> so, for someone who search this later, to open a file in the same folder as the script file, do this:</p><p></p><p>--change this variable</p><p>set theFile to "your_file.pdf"</p><p>------------------------------</p><p>set myPath to path to me</p><p>tell application "Finder"</p><p> set myFolder to (container of myPath) as string</p><p> open file theFile of folder myFolder</p><p>end tell</p></blockquote><p></p>
[QUOTE="Capelo, post: 395080, member: 30306"] well, just got it. :) so, for someone who search this later, to open a file in the same folder as the script file, do this: --change this variable set theFile to "your_file.pdf" ------------------------------ set myPath to path to me tell application "Finder" set myFolder to (container of myPath) as string open file theFile of folder myFolder end tell [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
Create a executable file for mac
Top