Script to automatically launch tunebar with iTunes...or any apps together..

K,
First off, I'm very and I mean VERY new to all this (Macs and definitely any kind of scripting).
I often run two complementary apps together (makes sense). For example, I now use TuneBar with iTunes, and although it seems in the preferences that TuneBar can always start when iTunes does...for some reason, for me, it does not.
Being new to Mac, I followed the commonplace information Apple puts out. First I tried automator, which I didn't find quite immediately self-explanatory and encompassing as advertized since I couldn't find any sort of "If" event. (But maybe it's just me being new/dumb). While trying to read/learn what to do, it seemed the right thing to do was go another route-- start searching for scripts.
Finally after sifting endless irrelevant pages/posts (again, could be my lack of search terms), I just experimented by modifying a script that someone had written to check and launch a server's application after a crash.
What (I think) the script does is checks if iTunes is running, and if it is, then it starts TuneBar. Yee ha! It goes as follows:
tell application "System Events"
if ((get name of the processes) contains "iTunes") then
tell application "TuneBar"
activate
end tell
end if
end tell
Apple is right, the logic seems very easily understood (open/close brackets or commands). I then placed it in Library>iTunes>Scripts so I could get easy access to running it, in case it doesn't automatically run (which ideally I'd like it to).
What I don't know, is if I did this right-- like a blind man at an orgy, I'm having to feel my way around. (Thanks to Naked Gun for that.)
I mean, it seems to work, but I don't know if I opened up a world of potential pain by not including something, by making a potential loop, or by writing it the wrong way. I literally don't know my *ss from my elbow as far as programming anything goes. If someone could just give me a green light, or critique/lesson I'd really appreciate it.
Assuming i did this right, i guess this could be used to run any applicationB when applicationA was found to be running. At the very least, maybe someone else in my shoes will find this in a google search where I did not.
That's my novel. Rest your eyes.
(Sorry if I put this in the wrong place or if this is just really simple and redundant for the savvy reader/admin.)

Okay, it took the tabs out of my message (also probably my fault).
So ignore things in {} brackets...they indicate the missing spaces.
tell application "System Events"
{TAB} if ((get name of the processes) contains "iTunes") then
{TAB}{TAB} tell application "TuneBar"
{TAB}{TAB}{TAB} activate
{TAB}{TAB} end tell
{TAB} end if
end tell
Right now, someone is probably making fun of me.
Oh, the shame. There it is.

Similar Messages

  • My iPad does not have sound when on the Internet, including YouTube, but does have sound with iTunes and other apps.  How can I correct this?

    My iPad does not have sound when on the Internet, including YouTube, but does have sound with iTunes and other apps.  How can I correct this?

    If you are sure that you have sound in other apps - and if you can still hear keyboard clicks and get notifications, then system sounds are not muted. Try this and see if it works.
    Close all apps completely and reboot the iPad.
    Go to the home screen first by tapping the home button. Double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • HT1386 trying to sync iphone 4 and itunes keeps coming up with "itunes cannot sync apps to the iphone because the apps installed on the iphone could not be determined"?

    trying to sync iphone 4 and itunes keeps coming up with "itunes cannot sync apps to the iphone because the apps installed on the iphone could not be determined"?

    Same issue. Is this a new bug with iTunes 10.5.1??
    Anyone know of a solution?
    I reported it to Apple on the feedback page, but, I'm pretty convinced that Apple doesn't listen to or read their feedback. http://www.apple.com/feedback/itunesapp.html

  • My Ipad 2 was working fine, after  syncronizing with iTunes the contacts App froze completely, in the Settings everything works, but if you go to the mail settings they the settings freeze. I can't send Emails. I am using outlook, anybody has an answer?

    My Ipad 2 was working fine, after syncronizing with iTunes the contacts App froze completely, in the Settings everything works fine but if you go to the mail settings the entitre settings freezes. I am usng Outlook but can't send mails.  Any body has a solution?

    Update to above question:
    Hello All,
    To anyone with the same problem described above, on THEIR iPad (if it is running iOS 7.0.2):
    Go to Settings; Mail, Contacts, Calendars; DELETE your *******@btinternet.com e-mail account, that you originally set up either using 'Other', or the 'BT' option which I am sure was in the list previous to the iOS 7 update.
    Then ADD a NEW account choosing YAHOO from the list of options. DO NOT USE 'OTHER'.
    Enter the correct details just as you (almost certainly) had already done in your previous attempts using 'other'.
    When you see the 'verifying......' and 'the blue ticks' you should be able to exit settings and open your mail app and then receive all your 'old' e-mails again, AND be able to SEND as well.
    All my 'old' e-mails, were NOT found in the 'old e-mail' folder though. THEY are still in my inbox.
    So this fix worked for me.
    After I deleted my account from 'OTHER' and put it in Yahoo, I like other people also ended up with more folders.
    I hope this works for you on YOUR Apple devices.
    Bob

  • Can I update my iPhone with iTunes without any sync ?

    Hi everybody, I have a simple question, i want to know if can update my iPhone from iOS 6 to iOS7 with iTunes without any sync between iPhone/PC, because my MacBook Pro was stolen the last month and my iPhone was sync with the Mac.
    Thanks

    Although you aren't getting the "Unable to verify update" error mentioned in this article, you might try the same troubleshooting steps to see if they help with your problem: http://osxdaily.com/2013/11/15/fix-unable-to-verify-update-error-ios/.

  • I am not able to access the "Settings" on my iPad 3. I just get a gray screen for about 30 seconds and then the app shuts down. I am also unable to access the App store, iTunes, or any app requiring an internet connection. Any thoughts?

    I am not able to access the "Settings" on my iPad 3. I just get a gray screen for about 30 seconds and then the app shuts down. I am also unable to access the App store, iTunes, or any app requiring an internet connection. Any thoughts?

    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."

  • PAINFULLY SLOW launch times with MS Office 2004 Apps?

    Anyone else noticing painfully slow launch times with their MS Office 2004 Apps? It seems that each time I restart my machine and try to open any kind of office document the Word icon will bounce at least 15 times and then it takes forever for the application to actually launch. Once launched it seems fast and works fine, but not on initial launch after restart.
    Is this a Rosetta issue? Should I reinstall the MS Office apps?
    -JB

    Seems ok to me. Did you download the latest update which finally allows spotlight to search in Entourage and provide other improvements?
    http://www.microsoft.com/mac/downloads.aspx?pid=download&location=/mac/download/ office2004/Office2004_11.2.3.xml&secid=4&ssid=29&flgnosysreq=True
    "Microsoft Office 2004 for Mac 11.2.3 Update
    After you install this update, you can use Mac OS X Sync Services and Spotlight searches to sync and find Entourage items, use smart cards with Entourage 2004, and enjoy improved overall security and stability when using Microsoft Word 2004, Excel 2004, PowerPoint 2004, and Entourage 2004. This update also includes all of the improvements released in all previous Office 2004 updates.
    Applies to: Microsoft Office 2004 Standard Edition, Office 2004 Student and Teacher Edition, Office 2004 Professional Edition, Entourage 2004.
    Released: March 14, 2006"

  • Can Firefox browser (all function) sync with IPad2? Any apps. available?

    Want to sync Firefox on IMac to IPad2. Are there any apps. that allow full functional use of Firefox on IPad 2?

    Ok this did not resolve the issue, I downloaded the Places Maintenance Add on and ran it with all of the options selected, I also verified that this is not a permissions issue and ran chkdsk on the disk.
    I am unable to make a backup of the bookmarks it just hangs and never makes the backup, I can't even export them either.
    I went to the next step and renamed the places.sqlite file and restarted firefox which did restore my bookmarks from a previous backup but I still can't click on the bookmark menu option without firefox locking up .
    How do I resolve this and how do I get my data back in to Sync?
    If this file is corrupted does that mean that all of my linked browsers downloaded the same corrupt file from Sync? How do I resolve that, is there anyway to recover my history from any of my other PCs?
    All that I did was when I was logged out of sync but want to know how I go about getting the info back in to Sync.

  • Need to find a scripts for changing default "Open with" iTunes app to Quick

    Hello all...
    I'm new to scripting but need a script really quickly...
    I was wondering if anyone knew where I could find a script that will change the default "Open with" of audio files placed within a certain folder on my desktop...
    I'm making sound clips with WireTap and dumping them in a folder called WireTapExports as .mp3. I then need to play them without using iTunes (and importing them by default) but going into the "Get Info" and manualy changing the "Open With" settings for each file is taking ages...and it's very irratating...
    Is there a way I can make all audio file put in that folder automaticaly open with Quicktime instead.
    I know this is quite easy to most but I've only just started looking at Applescript (i.e. a few days ago) and but I need this to work now...
    Many thanks in advance...
    PigeonCake...

    Not what you want, but if you hold the control key while getting info it changes to summary info which then lets you change the preferred application on a batch of files in one go.

  • Can't get apple tv to communicate with iTunes or any of my other apple devices.

    I have an Apple TV, iPad, and a couple of iPhones and an iTunes account with the Home Sharing feature tuned "on".  When I first connected my Apple TV to my network everything worked correctly, I could use the Remote application from each of my devices to control iTunes, I could mirror from my devices to the Apple TV using Airplay and had no problems with Home Sharing.  However, after about a week of everything working perfectly it all stop working.  Now I can't get any of my devices to communicate across my network and none of my devices can utilize Airplay, Remote app, or access iTunes via my wireless network.  I spoke with an Apple customer service rep who told me that the router will monitor traffic from certiain ports and block them if it thinks that the traffic is coming from a perceived security threat.  He suggested that I set up port forwarding in my router for the most commonly used ports by apple devices and software.  So I followed his suggestion and made the following port forwarding settings:
    Service Name
    External Start Port
    External End Port
    Internal Start Port
    Internal End Port
    Internal IP address
    1
    Apple Tv - iTunes - Bonjour
    5353
    5353
    5353
    5353
    192.168.1.4
    2
    iTunes
    3689
    3689
    3689
    3689
    192.168.1.4
    3
    Network time server
    123
    123
    123
    123
    192.168.1.4
    4
    podcast servers
    80
    80
    80
    80
    192.168.1.4
    5
    iTunes Store via internet
    443
    443
    443
    443
    192.168.1.4
    6
    regular DNS
    53
    53
    53
    53
    192.168.1.4
    By the way, my router is a Netgear WNDR3400.  After making the port forwarding setting I still can't get any of my devices to work properly.  My Apple TV will communicate with my desktop computer if I connect it to the router via a hard wired connection but it will not work via a wireless connection. Anytime I try to access the Remote application on any of my devices I get the message that says "Turn on Home Sharing in iTunes on your computer or on Apple TV. - I have checked multiple times to see that I have Home Sharing turned on and I can assure you that it is.
    I am running the most up to date software versions on all of my Apple devices, iTunes, and my Netgear router. 
    Any help with this matter is greatly appreciated!  Thanks in advance.

    One thing I forgot to mention is that I am running Windows 7 and I have already gone into the firewall security setting and told it to allow all of the apple programs like bonjour and iTunes through.

  • I have attempted to upgrade os4 to os7. icloud has taken an old expiered email address for which i do not know the password. It will not recognise my current email and password with itunes.  Any help appreciated

    I have attempted to upgrade os4 to os7. At the end, it threw an error that i had to turn off "Find my iphone" on my phone, which seems to be impossible at that stage as i could not access beyond the upgrade screen.
    I thin chose to set up as new iphone, but icloud has taken an old expired email address for which i do not know the password. icloud will not recognise my current itunes email and password, so i now have os7 but am unable to restore from my itunes back up. 
    Desperately need help please... Any help appreciated
    Thankyou

    If you don't know your password, don't know your security questions and don't have a rescue address or don't receive a reset email, you should contact AppleCare who will initially try to assist you with a reset email or if unsuccessful will pass you to the security team to reset your security questions for you.
    If you are in a region that doesn't have international telephone support try contacting Apple through iTunes Store Support.

  • After years of use, my ipod classic will not sync with itunes on any computer. I have wiped the ipod clean and it still won't sync. what to do?

    I had about 80 songs on my ipod and it worked fine until one day i purchased some new music from itunes and discovered that it wouldn't sync. I tried various things and finally wiped the ipod clean thinking it would sync then. It doesn't and now I have no music on it. When I check for devices, the sync option is grayed out on itunes. I even tried it from another computer but it won't sync with that either.

    See Corrupt iPod classic. What are the stats?
    tt2

  • HT4113 My ipad is locked and I have forgotton my passcode. I have never synced with itunes. Any advice as I will lose purchases and photos? Many thanks

    My ipad is locked and I have forgotton my passcode. I have never synced to itunes. Do I lose all purchases and photos? Many thanks

    Removing Disabled erases the contents of the iPad. You can redownload your apps, but the pics will be gone. If you have important files on your iPad, you should always backup frequently.
    Downloading Past Purchases from the iTunes Store, App Store and iBooks Store
    http://support.apple.com/kb/ht2519
    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just canceling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • I have recently bought iphone 5. at the beging all my apps synced with itunes but now  apps are not synced.

    I'm having problem in syncing apps in itunes.

    Would these be the iLife apps that are preinstalled on new Macs?
    There is supposed to be a process of accepting these apps into your Apple ID account.
    1. Be sure that you have enetered your iTunes/Mac App Store (MAS) Apple ID in System Prefs/Users & Groups/Password.
    2. Open the MAS and sign into your account.
    3. Check the Purchased pane, the apps should be listed with Accept buttons.
    4. Accept the apps.
    After accepting the apps you should be able to update them. If they are not listed on the Purchased pane of the MAS then I would return with the Mac to place of purchase and enlist their aid in getting the apps into your MAS account.

  • TS1702 Recently my iPad is having connection issues with iTunes and the app store. I always get the message, "Can't connect to iTunes"...can anyone suggest a solution?

    I have tried everything. Wifi is working, I can use safari with no problems, I've tried restarting iPad, I've tried signing out then back into iTunes...and a reboot of my iPad. Nothing works!!!!  Oh and I checked for updates and everything is up to date.
    What is anyone's suggestion??? Need help please!!!

    See:
    IOS 6 App store crash: Apple Support Communities
    Try:
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Last, make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

Maybe you are looking for

  • Adobe Reader 11.0.03; Docs open and then close after 2 seconds

    I'm running Win 8, 64 Bit.  When I try to open pdf doc in Adobe Reader XI 11.0.03, IE10, it closes after 2 seconds.  I have uninstalled several times and reinstalled but no fix.  Any solutions? 

  • How to generate output file of a certain report in a specified directory

    Hello everyone, I wanna know how to generate the output file of a certain report in a specified directory. Now, the output file directory = /produits/OA/OAS/production/prodcomn/admin/out/PROD_us15k1bp/ I wanna to generate the output file of a report

  • How to connect nexus 7 wirelessly to hpd 2540

    Followed set up instructions. Printer works from laptop. Tried to connect wirelessly. When WiFi link to printer was made connection to neuf was lost. On reconnecting to neuf provider WiFi connection to printer was lost. Tablet (nexus) showed that doc

  • Message monitoring of synchronous messages

    Guys, whenever I check a synchronous message in message monitoring, its audit log is correctly shown but the message (header and payload) are not shown, returning the message "The message was deleted to save memory" or something like that. Does anyon

  • What are the differences between TestStand Version 1.0.2 and 1.0.3?

    I have TestStand version 1.0.2 and have a customer that uses 1.0.3. I am updating test software for that customer and need to know if I can use TestStand 1.0.2. What are the differences between 1.0.2 and 1.0.3?