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 - Operating System
Login Script to Mount SMB Drive to Desktop
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="giulio" data-source="post: 532837" data-attributes="member: 28677"><p>Here is my solution, which uses automator:</p><p></p><ol> <li data-xf-list-type="ol">Launch Automator, which will create a new workflow.</li> <li data-xf-list-type="ol">From the Finder Library, drag the <em>Get Specified Servers</em> Action into the workflow. Click the [+] and enter the address of your server. Something like cifs://server/share, then click Connect.</li> <li data-xf-list-type="ol">From the Finder Library, drag the <em>Connect to Servers</em> Action into the workflow. Be sure 'Use Results from Previous Action' is enabled in the URLs pulldown. (The following three steps are optional. They will open a Finder window focused on the mounted share and set the View for it.)</li> <li data-xf-list-type="ol">Add the Finder Action <em>Get Specified Finder Items</em> to the workflow. Click the [+] and select the share you want to automate mounting of. Click Open.</li> <li data-xf-list-type="ol">Drag Finder's <em>Open Finder Items</em> Action into the workflow. 'Open with' should be 'Default Application.'</li> <li data-xf-list-type="ol">To make sure the Finder honors your preferred view, drag Finder's <em>Set Folder Views</em> action into the workflow. Use the options to your liking.</li> <li data-xf-list-type="ol">Select Save As, and set the File Format to Application. I suggest saving it to your user's Applications (~/your_user/Applications) folder, and naming it with the share's name.</li> <li data-xf-list-type="ol">In the Finder, navigate to where you saved this Automator app. Drag the new app into your login items window.</li> </ol><p></p><p>It's never failed. And you don't have to worry about error checking anything like that. It's an app, so it runs in it's own environment, not dependant on terminal/etc.</p></blockquote><p></p>
[QUOTE="giulio, post: 532837, member: 28677"] Here is my solution, which uses automator: [LIST=1] [*]Launch Automator, which will create a new workflow. [*]From the Finder Library, drag the [I]Get Specified Servers[/I] Action into the workflow. Click the [+] and enter the address of your server. Something like cifs://server/share, then click Connect. [*]From the Finder Library, drag the [I]Connect to Servers[/I] Action into the workflow. Be sure 'Use Results from Previous Action' is enabled in the URLs pulldown. (The following three steps are optional. They will open a Finder window focused on the mounted share and set the View for it.) [*]Add the Finder Action [I]Get Specified Finder Items[/I] to the workflow. Click the [+] and select the share you want to automate mounting of. Click Open. [*]Drag Finder's [I]Open Finder Items[/I] Action into the workflow. 'Open with' should be 'Default Application.' [*]To make sure the Finder honors your preferred view, drag Finder's [I]Set Folder Views[/I] action into the workflow. Use the options to your liking. [*]Select Save As, and set the File Format to Application. I suggest saving it to your user's Applications (~/your_user/Applications) folder, and naming it with the share's name. [*]In the Finder, navigate to where you saved this Automator app. Drag the new app into your login items window.[/LIST] It's never failed. And you don't have to worry about error checking anything like that. It's an app, so it runs in it's own environment, not dependant on terminal/etc. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Login Script to Mount SMB Drive to Desktop
Top