|
|
#1 |
|
Script that will mount an external HD
Ok so I'm moving all of my iTunes library to an external HD (DETAILS: http://forums.macrumors.com/showthre...#post139799730 and i want a script that will connect to my external hd when i open iTunes so the music is there. so can someone help me with this?
__________________
ipod nano X3 ipod touch 2 Gen 27 in aluminum Imac iPad 2 3G 16gb, iPad 64gb 32GB iPhone 4 S⃣ 10/5/11 Never Forget
|
|
|
|
0
|
|
|
#2 |
|
This Applescript should do it for you:
Code:
set volumename to "Betelgeuse" -- change this to the volume name you want try do shell script "diskutil mount " & quoted form of volumename -- To unmount the volume use: -- do shell script "diskutil unmount /Volumes/" & quoted form of volumename -- To start up iTunes use -- tell application "iTunes" to activate on error -- something went wrong with the mount, or unmount -- you can try to fix it here end try Last edited by Partron22; Dec 8, 2011 at 11:32 AM. Reason: 'quoted form' for vols w space in name |
|
|
|
0
|
|
|
#3 | |
|
Quote:
__________________
ipod nano X3 ipod touch 2 Gen 27 in aluminum Imac iPad 2 3G 16gb, iPad 64gb 32GB iPhone 4 S⃣ 10/5/11 Never Forget
|
||
|
|
0
|
|
|
#4 |
|
Copy the text in that "Code" block into an AppleScript Editor window
Change the word "Betelgeuse" to whatever the name of your drive is. Click the run button. It should mount the drive. All those lines that start with -- are comments. If you remove the -- from the "-- tell application "iTunes" to activate" The script will start up iTunes after mounting the drive. |
|
|
|
0
|
|
|
#5 | |
|
Quote:
__________________
ipod nano X3 ipod touch 2 Gen 27 in aluminum Imac iPad 2 3G 16gb, iPad 64gb 32GB iPhone 4 S⃣ 10/5/11 Never Forget
Last edited by Dr Kevorkian94; Dec 8, 2011 at 01:16 PM. |
||
|
|
0
|
|
|
#6 |
|
Oh, it's a network device!
That's different: You want something like this: Code:
set mypth to "afp://XXX._afpovertcp._tcp.local/YYY" -- Get this from the Finder's get Info window for the network disk after you mount it manually The information you want is the "Server:" line. set err to false tell application "Finder" try mount volume mypth on error set err to true end try end tell if err is equal to false then tell application "iTunes" activate end tell end if -- see: http://www.theothertomelliott.com/node/232 -- Or, you can just put these paths as url's in the startup items folder -- see also: http://hints.macworld.com/article.ph...50215082247458 Last edited by Partron22; Dec 8, 2011 at 02:16 PM. Reason: added refs |
|
|
|
0
|
|
|
#7 | |
|
Quote:
__________________
ipod nano X3 ipod touch 2 Gen 27 in aluminum Imac iPad 2 3G 16gb, iPad 64gb 32GB iPhone 4 S⃣ 10/5/11 Never Forget
|
||
|
|
0
|
|
|
#8 |
|
The 'Connect to server' item in the Finder's 'Go' menu should also give you that information.
|
|
|
|
0
|
|
|
#9 |
|
ok so i just have to set it up correctly so when i open iTunes it will connect to the HD so my music is there
Edit: I don't think this is going to work the way i want so I'm going to start a new thread to see if i can just stay connected.
__________________
ipod nano X3 ipod touch 2 Gen 27 in aluminum Imac iPad 2 3G 16gb, iPad 64gb 32GB iPhone 4 S⃣ 10/5/11 Never Forget
Last edited by Dr Kevorkian94; Dec 8, 2011 at 06:03 PM. |
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| what's a good car mount that will fit an iPhone 4? | 212rikanmofo | iPhone Accessories | 25 | Oct 22, 2011 01:26 AM |
| A script or a way to sched nightly mounting of external HD? | Learjet035 | Mac Basics and Help | 3 | Mar 1, 2011 01:51 PM |
| Mount an external HD connected to PC to use as Time Machine Location? | Mugambo | MacBook Pro | 4 | Sep 25, 2010 09:14 AM |
| An automator or script that will clear my Safari/Firefox | tbluhp | Mac Applications and Mac App Store | 3 | Jul 4, 2010 06:51 PM |
| Terminal help: mounting an external HD | mishi | Mac Pro | 4 | Jul 8, 2006 03:05 AM |
All times are GMT -5. The time now is 09:26 AM.




ipod nano X3


Linear Mode

