folder/program boot order

Discussion in 'macOS' started by krojsy, Sep 24, 2013.

  1. krojsy macrumors newbie

    Joined:
    Sep 24, 2013
    #1
    hi there,

    brand new to this forum, brand new to mac pretty much, and not much good with anything other than basics with anything with buttons

    i have moved all of my tvshows movies and music to a NAS and imported into itunes. i had the folders and itunes booting through the standard system options. this works for the most part however when itunes loads before the folders are mounted the artwork disappears, and sometimes the files cant be played on iTunes at all. deleting and reimporting fixes it until the next time it happens. so mounting the folders first, then itunes opening i figure will fix the problem

    another complication: sometimes my wifi drops out, causing the folders not to be mounted at all.

    so i read about applescript being able to delay the opening of the items, but i dont know how to write one.

    best thing i figure is, have the apple script mount the folders, and then itunes can open too. so can this be done? i mean if the folders dont mount, can something be written stopping itunes from opening also?

    thanks!

    chris
     
  2. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #2
    Try something like this in Applescript, then put the Applescript in your login items.

    Code:
    tell application "Finder"
        try
            mount volume "PATH"
        end try
    end tell
    delay 10
    tell application "iTunes"
        activate
    end tell
    
    Do a Get info on the mounted drive to get the path info and put that in place of the PATH comment above. So that line would look something like this:

    Code:
    mount volume "afp://TC_Network._afpovertcp._tcp.local/TC_Disk/"
    You can increase/decrease the delay to fine tune it.
     

Share This Page