Launch Remote Automator Workflow or Application via Apple Remote Events

Hi All,
I read in a MacScripter post that a remote application must already be running to send it Apple Remote Events.
http://bbs.applescript.net/viewtopic.php?id=3727
However I have found that since the Finder is always running you can tell Finder to open the application. I wanted to launch an Automator App on my web server to run a perl script to update an index database.
Open this Scriplet in your Editor:
tell application "Finder" of machine "eppc://Username:Password@IP_Address"
open file "Server HD:Applications:iTunes"
end tell
When I run this iTunes launches on the other machine. I use it like.
Open this Scriplet in your Editor:
tell application "Finder" of machine "eppc://Username:Password@IP_Address"
open file "Server HD:Users:admin:Documents:Rebuild IF Index-Quick"
end tell
The last item "Rebuild IF Index-Quick" is the name of my Automator App.
Be sure Remote Apple Events is on for the remote computer. Also you can do this over the web as opposed to being on the same LAN as the remote computer by using you WAN IP and adding :3031 to the IP Address to direct it to port 3031, be sure to open/direct this port number in your router or firewall to the proper machine.
Cheers,
MT
Power Mac G4 800 mHz Quicksilver 2002   Mac OS X (10.4.8)  

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

  • Distribute Adobe Air Runtime via Apple Remote Desktop

    I've be researching whether or not it's possible to distribute the Adobe Air framework via Apple Remote Desktop, but I haven't found any solutions. The Adobe Air Admin guide has this to say:
    Enterprise deployment
    IT administrators can install Adobe AIR and AIR applications silently using standard desktop deployment tools. IT administrators can deploy the following:
    •Silently install Adobe AIR using tools such as Microsoft SMS, IBM Tivoli, or any deployment tool that allows silent installations that use a bootstrapper
    No mention of Apple Remote Desktop, or any other Apple-related Enterprise deployment methods. Is this possible, or must Mac software vendors bundle the Adobe Air framework with their pkgs (and jump through the necessary licensing hoops) in order for clients to get an Adobe Air app and all it's dependencies (i.e. the Adobe Air framework) distributed to a network of Apple machines.
    Thanks!

    Thanks for the interest in AIR.  You are correct that you would have to wrap everything (runtime and application) up in a .pkg for installation via ARD.  Another alternative would be to get the AIR Runtime installer on to the remote system, and then execute it via ssh.
    Chris

  • Unix security and privacy setting unix command via apple remote desktop

    Could someone guide me on the unix command to set System Preferemces Security & Privacy to xx minutes [see screenshot please] via Apple Remote Desktop.
    https://dl.dropbox.com/u/5485939/osx_screenshots/sys%20pref%20security%20privacy .png
    Thank you,

    Pereference tend to be stored for the computer as a whole
    /Library/Preferences/
    or specifcally for the user
    /Users/USERNAME/Library/Preferences/
    well when I set required password for XX minutes... I see that
    /Users/USERNAME/Library/Preferences/com.apple.screensaver.plist modfication date & time changes to the current time & date... hMMM maybe the setting we want is stored here? Can we test this?
    If I check require password and then do the terminal command:
    defaults read ~/Library/Preferences/com.apple.screensaver
    I see
        askForPassword = 1;
        askForPasswordDelay = 0;
        tokenRemovalAction = 0;
    turn it off
    run the terminal command;
    defaults read ~/Library/Preferences/com.apple.screensaver
    I see:
        askForPassword = 0;
        askForPasswordDelay = 0;
        tokenRemovalAction = 0;
    so I can turn it on with
    defaults write ~/Library/Preferences/com.apple.screensaver askForPassword -bool TRUE
    and I can turn it off with
    defaults write ~/Library/Preferences/com.apple.screensaver askForPassword -bool FALSE
    So if a user is logged into a computer. I could send unix command as current console user.
    defaults write ~/Library/Preferences/com.apple.screensaver askForPassword -bool TRUE
    BUT what if the user is logged out? or there are more then one user on the computer?
    then I could run unix command as user root and send
    defaults write /Users/USERNAME/Library/Preferences/com.apple.screensaver askForPassword -bool TRUE
    (replace USERNAME with the user's short name.)
    but what if I don't know the user name? or names
    send unix command as root
    ls -al /Users/
    get back a list of folders
    bob
    surely
    shares
    and then do
    send unix command as root
    defaults write /Users/bob/Library/Preferences/com.apple.screensaver askForPassword -bool TRUE
    defaults write /Users/surely/Library/Preferences/com.apple.screensaver askForPassword -bool TRUE
    you could also do some thing like
    defaults write ~/Library/Preferences/com.apple.screensaver askForPasswordDelay -integer 5
    if you want to change the period of time to lock to 5 seconds
    or
    defaults write ~/Library/Preferences/com.apple.screensaver askForPasswordDelay -integer 900
    (900 seconds  / 60 seconds = 15 minutes)

  • Remote-Conrol a COM-Application via JNI Error: RPC_E_WRONG_THREAD

    hi,
    we have written a DLL which launches and remotecontrols an application via Microsoft COM. This DLL is called by a Swing-GUI-Application via JNI. It works fine over years. Now we have rewritten our application as an rcp-plugin. The COM-Appplication still launches fine, but when I call a COM-function of the remote-controlled application i get back an error:
    RPC_E_WRONG_THREAD
    ...which means that the wrong threading model is used. Does anyone know about differnt threading models of a swing application and an rcp-plugin?
    thanks for your help
    robert

    Kapila_Shantha wrote:
    But they are saying that they can use and do program using it but they are using RHEL 4 . They are wrong.
    A well done JNI library, regardless of how it is used, should not cause system exceptions.
    That would be true whether you created the library or whether someone else creates it.
    Although if they don't wish to certify it for specific configurations then that could be the cause. If that and only that is the cause then you are out of luck.
    If the real problem is that you are using it incorrectly (which should still not cause that problem) then you need to figure out how to use it correctly.

  • Launching an automator workflow

    In general, I've found that Automator works for my relatively simple routines. However, I have encountered a problem that I have yet to solve.
    If I write a workflow and then test run it from the Automator window, it works fine.
    If I save it as an application, and then double-click the resultant icon where I saved it to, some workflows start and run all the way through without incident (repeatedly), some do sometimes but at other times will stop short of the end, and others will always stop short of the end. (This also occurs if I make an alias of the icon, and double-click on that -- i.e., some work flawlessly, others don't.)
    The routine that's giving me issues right now has a "Wait for User Action" action near the end. If I click on "Run" at top of the Automator window, everything always works. But if I double-click on the icon representing the workflow as an application, the routine stops at the correct point but shows neither the intended message nor the "continue" button (so there's no way to continue easily).
    Thanks for any ideas on this.

    Peter,
    Yes I have a similar problem with one of my Automator workflows. I suspect that these are probably all related to timing issues possibly related to the use of AppleScript System Events in the actions being used. I have been doing a fair amount of work recently using System Events in developing AppleScripts and frequently have that error when the rest of the script overruns the ability of System Events to keep up.
    One suggestion is to place "Pause" actions with long times in the script at places where you seem to be having trouble and see if this helps. If it does then you can progressively reduce the time until it starts to produce the error again and then increase the time back up one notch to where it was error-free.
    If people send me a list of their workflows I might be able to sort out a more concrete reason/solution for these issues.

  • TS1741 What happens if i cant find my apple tv remote and want to set up apple remote

    I want to use apple remote on itouch to control
    my apple tv. How do i do this if i cant find my original apple
    Tv remote?

    Download and install the Free remote app and follow the instructions in the second link to set it up and connect it to your Apple TV.
    http://itunes.apple.com/us/app/remote/id284417350?mt=8
    About Remote app for iPhone, iPad, and iPod touch
    B-rock

  • How do you get the apple remote to STOP always launching iTunes????

    After upgrading to Snow Leopard, I have discovered a few annoyances. The biggest one is that the Apple remote is always launching iTunes when I use it. Even when the Finder is not the target app.
    I have my entire Star Trek collection on a firewire drive, and I like using VLC to watch them because of the playlist feature. Every time I use the Apple remote to try to skip to the next episode, it launches iTunes and begins playing music. This NEVER happened before in Leopard or Tiger.
    I have gone through the iTunes preferences and also looked for some obscure system preference to deal with this issue, but so far, no luck.
    Again, the]is NEVER happened under previous operating systems, so I'm going to assume it's a glitch in Snow Leopard.
    Does anyone know what's happening here??
    Help me obi-wan.

    HI,
    Open System Preferences/Security and turn Disable remote control infrared receiver.
    You may have to click the gold padlock icon to do this. You will be prompted for your
    Admin password.
    Also, when you come across a "bug", report it to Apple.
    http://www.apple.com/feedback/macosx.html
    And it seems you are not alone...
    http://forum.videolan.org/viewtopic.php?f=12&t=64304
    You can try to re "Pair' the remote also.
    To pair an Apple Remote with your computer:
    Hold the remote close to the computer (3 to 4 inches away) and point the remote at the front of the computer.
    Press and hold both the Menu and Next buttons on the remote until the paired-remote icon appears on your screen (about 5 seconds).
    To unpair an Apple Remote:
    Choose Apple menu > System Preferences, click Security, and then click General.
    Open the General pane of Security preferences
    Click Unpair.
    Carolyn
    Message was edited by: Carolyn Samit

  • Using Leopard with iCal, Apple Remote Desktop, and Quicktime/Keynote

    Hi,
    I need to create the following 'synergy' or workflow or 'automation' between these softwares:
    - iCal
    - Apple Remote Desktop
    - Quicktime/Keynote
    This is the application:
    Remotely controlling (ARD) and scheduling (iCal) several quicktime/keynote files for display (ie. playing full screen video but controlling which file is playing from home).
    How can I integrate all softwares?
    Extended application:
    I would also like to know if Leopard or any Apple software has the capability to read serial (RS-232) commands. For example, I would like to know and/or be advised if a screen/monitor is turned off (regardless if the computer is properly displaying the content or not).
    I look forward to your feedback.
    Thanks,
    LMB1980

    It is if you are trying to stream it.
    Users may want to stream their music into a third party program such as Ventrilo (as I do) to share their music (but not their libraries) with other listeners and speak on Ventrilo at the same time. You need two user profiles running Ventrilo at the same time, and two user profiles running iTunes.
    When I roll over to User Profile #2 after setting up iTunes to stream into Vent in User Profile #1, iTunes stops playing. This is a recent change. It's annoying.
    How do I change it?

  • Automator workflow cannot be triggered.

    Hello,
    I created a few Automator workflows. they all work fine when I launch automator and click "run".
    When I try to trigger the workflow via another software (like "Hazel" or Mail rules) it just doesn't run. I do see the little menubar icon rolling but nothing happens.
    Any ideas what can cause it and how I can solve it?
    Thank you,
    Ofir

    I tried using a Mail rule to launch an Automator workflow that had been saved as an application. That does not work. I think it is because the rule creator in Mail only gives you the option of running an Applescript.
    Here's what I am going to test next but have not had time to yet. Perhaps you will get a chance before I do. Create the workflows using Automator as usual and save them as applications. Now create an Applescript that will run and launch the appropriate workflows.
    Check out this article for an example of what I mean http://www.atpm.com/12.08/automator.shtml Look at the Tying Everything Together section. The items in quotation marks in that script are the titles of various Automator workflows.

  • Apple Remote Desktop Requiring Serial Number Each Time....

    Apple Remote Desktop Admin has suddenly started asking for the serial number every time it is launched. I tried uninstalling and reinstalling - same thing. Last time this happened it required a full reimage of my Mac to get it to work again. This is getting a bit ridiculous. I am running ARA 3.2.2 and Mac OS X 10.5.6. FYI my uninstall was by the book as per Apple's documentation:
    rm -rf /var/db/RemoteManagement
    rm /Library/Preferences/com.apple.RemoteDesktop.plist
    rm ~/Library/Preferences/com.apple.RemoteDesktop.plist
    rm -r /Library/Application Support/Apple/Remote Desktop/
    rm -r ~/Library/Application Support/Remote Desktop/
    rm -rf /Applications/Remote\ Desktop.app
    Has anyone else had such a problem with the current version of ARD?
    Thanks.
    Macbook Pro 2.8 Ghz 4GB RAM 10.5.6

    hd/Library/Preferences folder had read only privs for Amin user..
    followed these instructions for my audiable.com issue, and it resolved my ARD problem!
    http://audible.custhelp.com/cgi-bin/audible.cfg/php/enduser/popupadp.php?p_sid=undefined&p_lva=undefined&p_li=undefined&p_faqid=2962&p_created=11 30971116&psp=undefined#osmac
    search Audible Activation Loop at audible.com

  • Updating Acrobat using Apple Remote Desktop

    I'm pretty sure I already asked this yet I can't find the post so I need to ask again.
    I need to update Adobe Acrobat 9 and Adobe Reader 9 remotely - without having to touch every Macintosh the software resides on.  I would like to create a cumulative package and install updates using Apple Remote Desktop.  I have looked at the Enterprise Deployment software and documentation, yet I don't use Adobe Creative Suite - I only use Adobe Acrobat 9 and Adobe Reader 9.
    I have users with varying versions of Adobe Acrobat 9 and Adobe Reader 9, so downloading one version update won't work.  What I need is a cumulative updater containing updates from 9.0 through 9.4 for both products that can be deployed via Apple Remote Desktop.
    Is this possible and if so, how?
    Thanks for any assistance.

    We have the same problem. We can mass desploy CS5 with a package made with the Adobe Application Manager Enterprise Edition application. But Acrobat is not supported by AAMEE. Making my own package based on the information on http://www.osxdeployment.info/wiki/CS5_Repackaging_Guide doesn't work for us.
    We have more than 300 Macs and it's impossible to do the installation manually.
    Adobe should provide a standard pkg for Acrobat Professional 9.3 (part of CS5 DP & WP Suite).
    FYI a trial of Acrobat X is nowhere to be found for Mac: https://www.adobe.com/cfusion/tdrc/index.cfm?product=acrobat_pro

  • Apple Remote Desktop won't connect to 2 computers

    I have a class- 30 computers- I have 2 computers that will not allow me to connect via Apple Remote. I have tried everything that I know of to try to connect to these two computers. My school district will not allow me to get into the File Sharing folder of the System Preferences, so I have to try a different way.
    I have scanned, deleted IP address, added by IP address.... tried everything I know how to do... dynamite is now being loaded in my car to bring up here. -joke...
    The current status said "Access denied" for the longest time on my monitoring screen. I deleted Remote application on these computers and re-installed it. At least now... it says "ARD NOT ACTIVE"...so I think I might be getting somewhere.
    Two other quick things... the other 28 computers in my classroom show the Mac OS version 10.4.8(8L2127) and the machine model on my monitoring screen, while my non-functioning computers do not display this information. I tried Bonjour, IP address, and network address and so on.
    If there is anyway to get around this other than File Sharing... please help.
    For some reason, all the other computers have always worked, but these two have a poltergeist or something.
    G-5   Mac OS X (10.4.8)  
    G-5   Mac OS X (10.4.8)  
    G-5   Mac OS X (10.4.8)  

    Same problem here. I manage several remote Macs, but I have one MacBook which I can get no ARD access to (black icon). I can ping the IP, I can SSH into the MacBook, the ARD and Remote Login services are checked ON, the firewall is OFF. The ARD service is configured to allow my admin user full access - however, I get nothing. I have no trouble getting into the other Macs.
    Any ideas?

  • Multiple Apple Remotes no longer work with Apple TV!

    I've been using Apple TVs since the minute Steve Jobs introduced them in 2007. I bought the 2nd and 3rd Generation Apple TVs the minute each of them were introduced. I've been watching every Apple Keynote Address since they were available online or on CDs from the early 1990s, on my HDTV via my latest Apple TV when that was possible. I watch far more TV through my Apple TV than via my Cable Box, much of it music and music videos from iTunes on my 2006 Mac Pro! But as of YESTERDAY I am seriously thinking of getting another, ANY OTHER manufacturer's similar internet streaming box!!!
    WHY??? Because YESTERDAY, for no apparent reason except some programmer's or software engineer's stupidity, my Apple TV stopped working with all but ONE of my Apple REMOTES!!!
    Why is that stupid? Because, in my household there are three people who use Apple TV all day, and each of them have an aluminum Apple Remote which they all use to control what the Apple TV is streaming. We have two other Apple Remotes lying around in case one of us misplaces his or her Apple Remote, which happens occasionally. ALL FIVE of the Apple Remotes, just like the beige plastic Apple Remotes that they replaced, always worked with all three of my Apple TVs! Then yesterday, suddenly, only the LAST Apple Remote that was paired with this 3rd Generation Apple TV is able to control it.
    I've spent HOURS trying to fix this. This wasn't caused by an Automatic Update to the Apple TV's iOS; there has been no update in recent days. I've got Automatic Update turned on, just as I, a good Apple citizen, have my Apple TV set up to automatically send back Usage Data to Apple. I've rebooted my Apple TV. I've put brand new 2032 button batteries into my Apple Remotes. I pulled the power cord out of my Apple TV for 15 seconds and again for five minutes and then restarted it. As per instructions, I have Unpaired and re-Paired each and all of my 5 Apple Remotes. All to no avail. Only the last Apple Remote that was paired with the Apple TV works! Horrible. And STUPID, if it was a deliberate programming decision and it was introduced in a minor automatic update.
    Worse, I've been using the Remote app on my 5th Generation iPod touch to replace ONE of the unusable Apple Remotes, and as of a couple of minutes ago even THAT stopped working with my Apple TV! Well, I was able to fix that fairly easily by pairing the iPod touch Remote app with my Mac Pro and then pairing it again with my Apple TV. But I don't think that solution would be so easy for many non-technologically-inclined users. I also don't think that a $200 or $300 iPod touch is a very acceptable replacement for a $20 Apple Remote, especially since everyone buys iPod touches for totally different uses (I use mine primarily for taking notes using voice-activated audio or video -- it is by far the best device for that purpose out there -- police departments should take note).
    I'm hoping that this multiple Apple Remote problem somehow resolves itself, unless it is a hardware problem with my Apple TV. If so, I can hold out until Apple's media event next week, which I HOPE will premiere a new 4th Generation Apple TV, hopefully which will once again allow my five Apple Remotes to all control my Apple TV interdependently, without having to Unpair and Pair each one each time you wanted to use it, requiring you to quit whichever Apple TV app you were using each time, or alternatively to use Sneaker-Net to deliver the one working Apple Remote to each person who wants to use it, which can be difficult since at least one of the users is very ill! (Whew! A long sentence. But I hope you get the point.)
    Two days ago, I could never have imagined myself getting a Roku or an Amazon, Sony, Microsoft or some other streaming device. It just proves how fast a stupid little decision (if it was deliberate) can turn EVERYTHING around!

    People have a misconception with remote pairing (as does the description on this page -> Pairing your Apple Remote with your computer - Apple Support).
    The 1st paragraph is incorrect.
    The 2nd paragraph is correct.
    "If you have several Mac computers or an Apple TV that use the Apple remote, or other devices with integrated infrared ("IR") receivers in one room, you can "pair" your Apple Remote with a specific Apple device so it doesn't interfere with other Apple devices or IR devices nearby.
    Pairing allows you to set the receiving Apple device so that only it can be controlled by one remote. Learn how to pair your Apple Remote"
    Pairing sets the device to read only a specific remote.
    It does not set a specific remote to work only with a specific device. ie. if you point th remote at another Apple device (that is not paired) it will control it.

  • How can I use apple remote with Mountain Lion? Any Front Row alternative?

    Hi All,
    I recently upgraded from Snow Leopard to Mountain Lion.
    All great except for my Apple Remote control.
    Before, I could effectively control my iMac media with Apple Remote by using Front Row (music, photos, videos, good integration with iTunes and iPhoto).
    Now, as I understand, Front Row is expired.
    So, my Apple remote still works but with very limited options (just music, forward, backward and volume), and it's a real pity.
    Any of you Guys know how to restore Front Row?
    Otherwise maybe suggest an alternative (sth similar, should allow iMac media control by Apple Remote)?
    So far I tried to restore all Front Row files by a Time Capsule Snow Leopard backup (as indicatred on some other Communities).
    To restore was easy, but then, no way to launch it.
    Any advice will help!
    Thanks in advance/all the best.
    Marco

    Thanks Klaus1 for your prompt answer, although I went again through a dated discussion.
    I also got the feeling that somehow they want to push Apple TV..
    But, respectfully speaking towards our Friends at Apple, is it fair to promise what you don't deliver?
    I have choosen apple because I percive it's different.
    At currently published link: http://store.apple.com/uk/product/MC377Z/A/apple-remote
    they do promote the following:
    Apple Remote with Mac
    The Apple Remote gives you total command of your music, photos, videos and DVDs from anywhere in the room. It works with Front Row - a menu-based, full-screen interface - to make accessing the digital content on your Mac as simple as navigating your iPod. When you press the Menu button, your desktop fades and the sleek, Front Row interface takes its place, to give you control over your music in iTunes, your photos in iPhoto, the videos in your Videos folder and your DVDs. Turn up the volume. Shuffle. Skip to the next chapter on your DVD. Play a slide show, a home video that you made in iMovie, even a film trailer.
    Compatible with Apple products introduced in 2005 or later that have a built-in infrared (IR) receiver. Not compatible with MacBook Pro with Retina display.
    Cost for this is 15£ (19€).
    Now, I have iMac and Mac Book Pro (no retina display) both with Mountain Lion installed, and I understand both of them are not compatible with Front Row.
    Actually I adore apple tv and I got 2 at home nicely working on 2 different TVs.
    So I accomplished twice their wish of selling this product to me.
    Why shall they deceive me (and many others, as I read) by killing a still promised service?
    Should I read all forums before buying a trusted-brand-product like apple, to ensure that id does what declared?
    Don't get me wrong, I'm an enthusiast user of the whole apple family, since many years, and still I am.
    Just politely complaining for this decision, which creates to Many an easy avoidable disservice.
    Cheers
    Marco

  • How do I search threads within a specific support community, i.e.. Apple Remote Desktop?

    Very frustrated with new layout of discussion forums...
    How do I search key words within threads within a specific support community?
    For Example I want to search the phrase 'couldn't collect' within the Apple Remote Desktop community.

    Thanks for your response. I'm well aware of the global search field.
    My problem with that is if I search the term 'couldn't collect', (in reference to a very specific Error message generated while running a report via Apple Remote Desktop Task Server) I get a slew of useless hits that have either the words 'couldn't' and/or 'collect' or any variation of those words, such as 'collection'.
    I'm looking for responses that are very specific to Apple Remote Desktop only. I don't have hours to weed through thousands of responses that have no bearing to that at all.
    Searching within specific sub-communities was possible before this new layout. Whatever happened to the booelean searches and searching by phrases and the 'advanced' searches? Do they still exist?

Maybe you are looking for

  • Cannot use SASL Authentication Through GSSAPI on DS 6.3

    I try to kerberized DS 6.3. I do step by step instruction from "Sun Java System Directory Server Enterprise Edition 6.3" and it doesn't work. When I try to configure the Directory Server to Enable GSSAPI I get an error: modifying entry cn=SASL,cn=sec

  • Does not recognize playlists

    Just bought a new iPod Nano 4GB today, firmware version 1.1.3, iTunes 7.7.1 on a Mac Mini. When I sync my selected playlists, it doesn't keep any files (tunes) that I recorded myself (non-downloaded or from commercial CD's) in the selected playlist;

  • Project still active?

    Haven't seen anything in awhile, just want to make sure its not dead. I know with the FC Alpha group it feels like there are micro versions released every 2-3 weeks. We are holding our cyber breath

  • Unable to change singleton property of context parent node.

    Hi I am having a view context node structure as follows. Root context Node |__Parent *****|__child 1 *****|__child 2 I have created a table view which is using above structure. Now I have selected "Selection Mode" property of my table to "Multi", as

  • ITunes crash - now what?

    iTunes has gone away from the computer. The shortcut still exists, but says there is no program associated with it. iTunes still shows in the add/delete listing, but it won't allow deleting because "The feature you are trying to use is on a network r