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
AppleScript issue
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="vansmith" data-source="post: 1444752" data-attributes="member: 71075"><p>You need to add a quotation mark at the end.</p><p></p><p>Pretend bob has a value of <em>external_disc</em>. Let's construct the command now, replacing bob with the value:[code]do shell script "diskutil unmount \"Volumes/external_disc"[/code]See the problem? You've started putting quotation marks around the volume name but didn't put a closing one. You've also forgotten to put a forward slash before Volumes.</p></blockquote><p></p>
[QUOTE="vansmith, post: 1444752, member: 71075"] You need to add a quotation mark at the end. Pretend bob has a value of [I]external_disc[/I]. Let's construct the command now, replacing bob with the value:[code]do shell script "diskutil unmount \"Volumes/external_disc"[/code]See the problem? You've started putting quotation marks around the volume name but didn't put a closing one. You've also forgotten to put a forward slash before Volumes. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
AppleScript issue
Top