Shared Device

Coolcaper
Posts: 322
Joined: Fri Aug 30, 2013 9:37 pm
Location: Australia

Shared Device

Post by Coolcaper »

Thanks for the plugin. I am trying it out at the moment for mounting a shared NAS device. Is there a particular way I need to set it up to mount? I have set it up as a Disk Volume but no luck.
Asconasny
Posts: 161
Joined: Fri Jan 16, 2015 5:05 am

Re: Shared Device

Post by Asconasny »

was this issue resolved? I'm trying to figure out the same. Have a NAS and would like the volume to mount and dismount with this plugin.

regards
Asconasny
Coolcaper
Posts: 322
Joined: Fri Aug 30, 2013 9:37 pm
Location: Australia

Re: Shared Device

Post by Coolcaper »

Nope and haven't seen the developer active here for a while either.
User avatar
Different Computers
Posts: 2730
Joined: Sat Jan 02, 2016 10:07 am
Location: East Coast
Contact:

Re: Shared Device

Post by Different Computers »

There's a pretty simple applescript that would do this, and then you could use Indigo to fire off the Applescript.

Code: Select all

set diskName to "YourDiskNameHere"
tell application "Finder"
 if disk diskName exists then
  eject disk diskName
 else
  tell current application
   set deviceLine to (do shell script "diskutil list | grep \"" & diskName & "\" | awk '{ print $NF }' }'")
   if deviceLine = "" then
    display dialog "The disk \"" & diskName & "\" cannot be found." buttons {"OK"} default button 1 with title "Error" with icon caution
   end if
   set foundDisks to paragraphs of deviceLine
   repeat with i from 1 to number of items in foundDisks
    set this_item to item i of foundDisks
    if this_item contains "disk" then
     do shell script "diskutil mountDisk /dev/" & this_item
    end if
   end repeat
  end tell
 end if
end tell
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana, Yamaha RX Receiver.
Coolcaper
Posts: 322
Joined: Fri Aug 30, 2013 9:37 pm
Location: Australia

Re: Shared Device

Post by Coolcaper »

Thanks for that! Haven't been active on here either lol....life as usual :|
kmarkley
Posts: 187
Joined: Tue Nov 15, 2016 8:04 pm

Re: Shared Device

Post by kmarkley »

I have forked bip.phillipe's plugin to work with local network shares. There is a new device type to accomplish this.

Tested on my system with afp and smb shares, but should theoretically also work for nfs, ftp, and webdav.

This is a bit of a butcher's job and there are large swaths of this plugin I do not understand. Right now it works for me, but if it breaks you should probably revert to the official version.

Download here: https://github.com/kmarkley/Indigo-Domo ... ses/latest
Asconasny
Posts: 161
Joined: Fri Jan 16, 2015 5:05 am

Re: Shared Device

Post by Asconasny »

kmarkley wrote:I have forked bip.phillipe's plugin to work with local network shares. There is a new device type to accomplish this.
Great! thank you for this
work good on my system with smb shares


Asconasny
Post Reply

Return to “Bip's Plugins”