|
|
#1 |
|
Scripting help: application launching
Hey all. I have an external drive with my entire iTunes media folder on it, linked to iTunes . If the external is ejected or turned off , iTunes cannot locate the files .
This has happened a couple of times by accident . It's easy to reload the media ( exit iTunes and re-open it) but the album artwork seems to stuff up . Eg heaps of missing artwork , swapped artwork etc. I was wondering if its possible to run a script that will display the message "'please make sure external hard drive Is on before opening iTunes" when iTunes is opened . It could either delay by 10 seconds or so, or even better ask " is the external on" and if the answer is "yes" then iTunes will open . Forgive my noobness, only ever done windows batch files so my knowledge is very little . Thanks in advance guys
|
|
|
|
0
|
|
|
#2 |
|
Try this :
Code:
-- Change POMP to the name of your external disk
-- iTunes will only launch if the disk exists eg visisble in Finder
tell application "Finder" to set diskExists to exists disk "POMP"
set theResult to button returned of (display dialog "Is the external on" buttons {"Cancel", "Yes"} default button 2)
if theResult is "Yes" and diskExists then
tell application "iTunes" to launch
else
display dialog "Disk \"POMP\" is not on."
end if
__________________
Space Corps Directive 34124 |
|
|
|
0
|
|
|
#3 | |
|
Quote:
Sorry - what is POMP ETC?
__________________
iPhone 4s, iMac i5, MBP i5, MBA 13 " i5 TV
|
||
|
|
0
|
|
|
#4 | |
|
Quote:
So if the name of your external drive is MyBigDiskWithMyEntireiTunesMediaOnIt then replace POMP in the script with MyBigDiskWithMyEntireiTunesMediaOnIt.
__________________
Space Corps Directive 34124 |
||
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 06:28 PM.







iPhone 4s, iMac i5, MBP i5, MBA 13 " i5
Linear Mode
