Getting an app to run a script when it is feeling uncooperative?

Trying to get Image Capture to run an Applescript instead of an application (usually AutoImporter) but it keeps the script (.scpt) greyed-out. How can I outwit this behaviour, please? Write a bash script instead, or will IC just chole on that too?

If it will work at all, it will have to be an application. So save your AppleScript as an Application, not a Script.

Similar Messages

  • I am trying to get my apps on my iphone and when i click sync it says backing up files and it takes hours for it to go up but it says can't finish back up wat do i do

    i am trying to get my apps on my iphone and when i click sync it says backing up files and it takes hours for it to go up but it says can't finish back up wat do i do

    dplum12
    What computer operating system is your Premiere Elements 12 running on? Did you have the opportunity to update 12 to 12.1 Update yet using an opened project's Help Menu/Update? If not, please do so when you get the opportunity.
    For now I will assume that your computer is Windows 7, 8, or 8.1 64 bit. Please try the following suggestions to overcome your Premiere Elements Sign In issue.
    http://www.atr935.blogspot.com/2014/04/pe12-premiere-elements-12-editor-will.html
    and, if you get any messages about Internet connect and the computer clock, please review the following
    http://www.atr935.blogspot.com/2014/04/pe12-sign-in-failure-connect-to.html
    Please let us know the outcome.
    Thank you.
    ATR

  • Launchd - can it run a script when users log in OR switch?

    I'm hoping to find someone who knows all the gory details of launchd. Here's the why and what: I'm trying to coerce Aperture into letting two users on the same computer share the same Aperture Library, both able to import photos and see and use what the other has done. Initially it is no problem, change the permissions so everyone has read/write/execute, put the Library in a common area, and point both person's Aperture at it. The problem is that Aperture changes permissions of things inside the Library as you use it, and especially when one person imports, the other person can't see that stuff.
    So I want to run a script whenever someone logs in or becomes the active user by fast user switching; the script will simply change ownership and permissions of the library and everything in it to restore full access.
    After days of research and testing, I made a test launchd plist file (this is the configuration file or agent that launchd looks at and runs your script when criteria are met). It sits in /Library/LaunchAgents/, here it is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>org.jim.test</string>
    <key>LimitLoadToSessionType</key>
    <string>LoginWindow</string>
    <key>ProgramArguments</key>
    <array>
    <string>/Library/Scripts/testscript.sh</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>StandardErrorPath</key>
    <string>/Users/jim/Desktop/test.err</string>
    <key>StandardOutPath</key>
    <string>/Users/jim/Desktop/test.out</string>
    </dict>
    </plist>
    The actual test script is sitting in /Library/Scripts/:
    #!/bin/bash
    echo "org.jim.test.plist was run at `date`"
    So if the plist is loaded and the script run, the date and time are written in the test.out file on my desktop. This thing runs great when a user logs in. The problem is, it doesn't run when users switch by fast user switching. In reading the documentation, it was vague about this, whether that could be done; I thought it could.
    Can anyone help with a way to get the script to run when any user takes control by any means? As an added complication, which I'll worry about later, the script has to run as root because it's the only way to get the ownership and permissions changed.
    Thanks,
    Jim

    BobHarris is the MAN. ACLs seem to have worked. I put the Aperture Library in /Users/Shared/ApertureLibrary, restored the regular permissions as best I could (me as owner, staff as group, 755), pointed each person's Aperture to the library, then proceeded with the ACL magic. First I created a group for my wife and I, called 'aperture', in the Accounts preference pane. That was to simplify the ACLs (one entry instead of 2) and so that other users (son) aren't able to muck it up.
    It took one stinking Terminal command (note that 'aperture' at the beginning of the quote is the group, not the program, folder or library):
    chmod -R +a "aperture allow list,addfile,search,delete,add_subdirectory,delete_child,file_inherit,directoryinherit" ApertureLibrary.aplibrary
    I was unsure whether this list of permissions was necessary or sufficient, but it seems to have worked so far. Both users can access the library. I imported a different picture by each user, and the other user could then see and delete the picture imported by the other. This was not possible before.
    Bob, thanks for the great idea. After a little more testing I'll post a complete how-to in the latest "how do we share Aperture" thread, and give you due credit. The bad news is all the launchd fun is over
    Jim

  • Have terminal NOT run a script when it loads

    I recently wrote a basic shell script and saved it as a .command file to run from the desktop. Since then, whenever I open the terminal it automatically runs the script then exits the terminal. If I hide the file (mv pt-noplugs.command .ptnoplugs.command) it simply opens the terminal and closes it immediately. I have tried changing the default shell from bash to something else but this doesn't seem to make a difference. I also don't seem to have a .bashrc file when it normally is /home/user/.bashrc (I'm used to linux). Any help would be appreciated. Below is the script:
    # Shell Script to start Pro Tools HD with no waveshell Plug-In
    echo "*"
    echo "* Script: pt-noplugs.command"
    echo "* Please Leave This Window Open Until ProTools Has Exited"
    echo "*"
    # Move waveshell Plug-In Files to Plug-Ins (Unused)
    cd "/Library/Application Support/Digidesign/Plug-Ins/"
    mv -v Waveshell-DAE_5.9.1.dpm "../Plug-Ins (Unused)"
    # Start Pro-Tools
    /Applications/Digidesign/Pro\ Tools/Pro\ Tools\ HD.app/Contents/MacOS/Pro\ Tools\ HD
    # Restore Plug-Ins directory
    cd "../Plug-Ins (Unused)"
    mv Waveshell-DAE_5.9.1.dpm ../Plug-Ins
    echo "*"
    echo "* Thank You. This Window May Now Be Closed"
    echo "*"
    exit

    I forgot to add: when I login as a different user and load terminal is does NOT run the script mentioned before.

  • Run a script when folders are deleted?

    I'm just playing with idea I was thinking of have a Plist in the launchd folder so that when the certain folders of the desktop are deleted it would run a script to collect information about the folders that were deleted.
    Folders begining with FR and DO are moved to the trash by user, then
    get number of items in each of the folder and write to a CSV file.
    I just need something that will reconise the items moved to continue the rest of the script.
    Any suggestions please?
    Its actually to link it to this script that is a work in progress.

    maybe something close to this?
    tell application "Finder"
              set hotFolder to folder "Hal 9000:Users:matthew:Desktop:HotFolder"
              set keyFolder to folder "Hal 9000:Users:matthew:Desktop:Keywords"
              --The above 2 folders will always exist if there are no other folders exist on the dektop then run the rest of the script else do nothing.
              if (exists (only folder hotFolder and keyFolder)) then
                        display dialog "Only these Folders exist"
                        else
                        display dialog "Other folders exist!" 
              end if
    end tell

  • I just enrolled in CC and I can get the app on my desk but when I navigate from home to apps to download apps, it just goes around and around in a blue circle (I'm on a mac).  help

    I just enrolled in Creative Cloud and I can get the app installed on my desk but when I navigate from Home to  Apps to download apps, it just goes around and around in blue circle (freezing).  Im on a MAC. 
    Thank you!

    Mac Spinning Wheel https://forums.adobe.com/message/5470608
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • Is it possible to run a script when changing Yoga modes?

    I'm currently working with a vendor of Restaurant reservation software and they have a customer that would like to implement the Yoga 13 for a chain of hotels. However, due to the fact that the software requires Silverlight, it's necessary to run a script so that they can use Google Chrome and have the software keyboard pop up automatically when a text field is entered or touched. 
    I can easily run the script at login and manually unload it when done, but since Lenovo already has software (Lenovo Transition) that can trigger things when the Yoga changes modes, is there some sort of developer tool or a system-wide event that can be used to automatically load and unload the script on mode change?
    Please let me know, some Yoga sales could depend on this....and I love the Yoga.

    Well, I'm looking for a means to activate a script through the active corners, I'm not asking any questions about the script itself, so I did not think it should be posted in the AppleScript categoriy, but sure, I'll give it a go.
    (New thread in AppleScript: http://discussions.apple.com/thread.jspa?threadID=2534773&tstart=0)
    Message was edited by: Max Ocklind

  • Use Launchctl to run a script when a program dies

    I have a faceless app that must be started by an AppleScript. This process is necessary because the faceless app  executes handlers that are loaded into it by the AppleScript.The AppleScript should be run at startup, and at any time the faceless app dies.
    If I simply start the faceless app directly, it will do nothing until it has the handlers loaded via the AppleScript.
    I would like to use launchctl to monitor the faceless app and should it die, run the AppleScript, which I can save as an app.  Note that the AppleScript itself should not be kept alive. It runs and dies immediately after it starts the faceless app and loads the handlers.  The problem is I can't find a way to create this "link" between the main app and the startup script. I looked at keepAlive, OtherJobEnabled. But, that seems to key off of the Disabled tag rather than the actual instance of the running program.  I also considered using WatchPaths but the faceless app does not seem to open files (it reads data from a socket on a remote mnachine)
    Here are the two agent plists I have (that do not work).  First, the AppleScript plist:
    <dict>
              <key>Label</key>
              <string>com.phidgets.phidgetsOsaStarter</string>
              <key>Program</key>
              <string>/Users/rdp/Desktop/Projects/Phidgets/AppleScript/1998-Phidgets-Control- rev_c</string>
              <key>RunAtLoad</key>
              <true/>
              <key>KeepAlive</key>
              <dict>
              <key>OtherJobEnabled</key>
              <dict>
              <key>com.phidgets.phidgetsOSA</key>
              <false/>
              </dict>
              </dict>
    </dict>
    and the faceless app plist:
    <dict>
              <key>Label</key>
              <string>com.phidgets.phidgetsOSA</string>
              <key>Program</key>
              <string>/Library/ScriptingAdditions/PhidgetsOSA</string>
              <key>RunAtLoad</key>
              <false/>
              <key>KeepAlive</key>
              <false/>
    </dict>
    I would greatly appreciate any ideas on how to approach this.
    FYI, For those that are interested, the facless app, PhidgetsOSA, provides an interface to a Phidgets controller (www.phidgets.com)

    So, I just took the easy way (for me) out. This will work until something better comes along...
    #!/bin/ksh
    while true
    do
      if [[ ! `ps ax|grep PhidgetsOSA|grep -v grep` ]]
      then
      /usr/bin/osascript /Users/rdp/Desktop/Projects/Phidgets/AppleScript/1998-Phidgets-Control-rev_c.sc pt
      /usr/bin/osascript -e "tell application \"IndigoServer\" to log \"restarted PhidgetsOSA\" using type \"Phidgets Watchdog\""
      fi
      sleep 15
    done&
    The first osascript call runs the AppleScript to start my app. The second one prints a log message in my HA app's log.

  • When i select the software in APP Store, the message i get is :App Store run with mistake(100)

    when i want to download  one software with pay in APP store, system send a message : App Store  failure in download, run with mistake 100

    Mac App Store: "An unknown error occurred (100)" when purchasing
              http://support.apple.com/kb/TS3637

  • Run a script when DND is on

    I saw that Messages.app has an AppleScript handler and I thought about making a script to change my status to "Away" or "DND" when Do Not Disturb feature of Notification Center is on. But I don't know how to "talk" to AppleScript regarding the DND feature of NC. I used AppleScript once or twice for simple tasks when I told Finder or Mail to do something simple, but now I don't know how to do this.
    I think that the "pseudocode" should be something like
    tell application "Messages" to (if DoNotDisturb is ON set status to "Away")
    but I don't know how to make it understandable by AppleScript. More precisely, I don't know how to refer to the DND state of Notification Center.
    Any help well appreciated. Thanks.

    Hi,
    If you Open AppleScript Editor you can use the File Menu to Open Dictionary.
    You will get a window full of the apps and items that have AppleScript Dictionaries.
    From here I opened the System Preferences one (There seemed to be no Notifications one)
    I looked at the two sets of items (Standard Suite and System Preferences).
    The second seems to be the one to use.
    It seems you could get AppleScript  to reveal the Panes and the Anchors as they are called within the pane.
    However when I try:-
    using terms from application "System Preferences"
        reveal pane
    end using terms from
    I get an error message.
    At this point my skills at AppleScript are exceeded to know what to do next.
    Aside from that Messages 7 (Mountain Lion) and earlier iChat version had an Alert section to the Preferences.
    These had seventeen different actions of things that could be set such as Buddy Coming On-line (Available), Messages Sent and well as th Message Received that is now in the General Section.
    You could set Sound, Dock icon bounces and Applescripts to each of these.
    I had two;  the first was set for AV Chat Started which changed the Status Message and the Input and Output volumes and the second for AV Chat Ended which said I had been busy but was no longer and changed the volume back.
    I would have to run these as External Scripts (not set in the option you describe) but I have not down this yet.
    I don't think the current option can be set to anything other than Message Received and you want to do things to the Status Message before then, control be an event in another app.
    10:14 pm      Saturday; January 25, 2014
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How can I run a script when an application quit??

    Greetings all,
    I'm trying to write a script, which can be triggered automatically (to do some stuff) at the time when a given application quit. I was playing around with this test script, taking "TextEdit" as an example - it just prints a message when TextEdit exits.
    ==========================================
    +*set targetapp to "TextEdit"*+
    +*tell application "System Events" to set rr to name of the processes*+
    +*--if targetapp is not in rr then*+
    +*-- tell application targetapp to activate*+
    +*-- tell application "System Events" to set rr to name of the processes*+
    +*--end if*+
    +*set rr1 to rr*+
    +*repeat until rr1 ≠ rr and targetapp is not in rr1*+
    +*tell application "System Events" to set rr1 to name of the processes*+
    +*do shell script "sleep 1"*+
    +*end repeat*+
    beep
    +*display dialog (targetapp & " is not active anymore !") as string buttons {"OK"} default button 1 with icon 0*+
    ============================================
    Unfortunately, it seems to work if I launch TextEdit using the script itself; it doesn't work with first +*"if - end if"*+ block commented out. Does anyone know how can I achieve this? Any help or suggestion greatly appreciated. Cheers!!

    Hi santanu,
    I'm sure you can use a variation of this application of mine to do what you want. It monitors all running processes and then reports when one closes.
    --initialize previous_processes
    global previous_processes
    tell application "Finder"
    set previous_processes to get the name of every process --use "whose visible is true" to remove the background ones
    end tell
    --monitoring script
    on idle
    tell application "Finder"
    set current_processes to get the name of every process
    end tell
    set numberofprocesses to count of items in previous_processes
    set counter to 1
    repeat while counter is less than (numberofprocesses + 1)
    if current_processes does not contain item counter of previous_processes then
    display alert item counter of previous_processes & " quit!"
    end if
    set counter to counter + 1
    end repeat
    set previous_processes to current_processes
    return 1 --runs every second...can be changed
    end idle

  • How do I get my apps to my home screen when it's in my setting

    My Facebook app is in my setting but it's not on my home screen... When I go to App Store it says it's already down loaded... How do I get it to my home screen??

    Facebook is in the settings whether you have the app or not, so that's not a surprise.
    Search for the app. Swipe down from the middle of the home screen to reveal the Spotlight Search at the top of the screen. Type in Facebook. The app should appear in the search. If it is hidden in a folder, that folder will be shown to the right of the app name in the search.
    if it's not in a folder, just start swiping from screen to screen to look for it. You can move it to the first screen by tapping and holding down on the icon until it wiggles, then move the app to the edge of the screen - about halfway over to the next screen - and the app should jump to that screen. Tap the home button when you are done moving the app.

  • How get parent path of running shell script

    Friends,
    I have a bush shell that location is /u01/test/oracle/codes/jobs/test.sh . I run below command in shell  get a shell scripts parents path.
    SCRIPT_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]})) .
    But return  script location as /u01/test/oracle/codes/jobs.
    However, I want to return value as  /u01/test/oracle/codes   for variale.
    Any ideal
    Thanks

    How do you run or invoke the shell script?

  • Just downloaded scrabble with friends to my pc on itunes. how do i get this app to run on windows

    i can t seem to run or move it from the itune app section.

    Apps downloaded/purchased through the iTunes App Store only work on iOS devices.  (iPhone, iPad, iPod Touch.)  Even though you downloaded through iTunes for Windows, the app needs to be synced into a iOS device and run from the iOS device.

  • How to get an app to run again without forcing quit.

    I was working on a paper and have multiple Word windows open. Once I logged on to my computer, I could not use/edit the current window that was open. I opened another window that was minimized and that one did not respond. I opened all of them and they all have the spinning rainbow thing that makes you wait until it loads. I would force quit, but I have unsaved documents (my paper). I did create a document which is saved in a folder on my desktop, but I worked on it since the last time I saved it and I do not know how much I would lose if I forced quit. Is there any way I could close other apps, delete downloads or create space (I am guessing that will help it load) that will allow it to load? I do not remember the last update I installed. I am almost positive I have not updated it from Mavericks to Yosemite.

    if you force quit you loose everything. If you have no choice but to force quit your best bet is to restart the computer before you attempt to launch the application again to rule out a corrupt session. If the problem persists it could be a bug in the app, an incompatibility with something else running or permission issue.
    reboot, if the problem persists try quitting out of all open applications and repairing permissions
    Macintosh HD:Applications:Utilities:Disk Utilities
    click your boot drive, click REPAIR PERMISSIONS and let it finish.

Maybe you are looking for