Applescript error

I'm running the latest version of QT Pro and using QT Player Scripts (downloaded from Apple's site). Since my upgrade to Tiger (i think that's the difference, anyway) I am getting a scripting error when trying to "add a chapter at current time" to the chapter track. I am able to create the chapter track but not able to add the chapters via scripts.
The error i'm getting is: NSReceiverEvaluationScriptError: 4
I've also tried adding chapters via a text file as outlined by Apple. I am able to get the chapter track to appear perfectly but when i save the file the chapter track disappears. Help!!!

Hey Everyone,
After a couple weeks of messing around with Automator. I finally decided to run some tests, I found what the problem was. After taking off FileValt, the flow worked correctly. I guess it could not find the alias of the file, due to the fact that it was encrypted. Just wanted to bring this up, in case of any further questions that may arise.
Merry Christmas,
Tom Frank

Similar Messages

  • Trying to batch print to postscript and getting AppleScript Error!

    Here is the script as copied from Script Editor:
    -- make a variable for the print settings to use:
    set thPrintSettings to "Publishers PDF standard"
    global thPrintSettings
    -- initially, we'll allow for picking destinations at script start
    set targetFolder to choose folder with prompt "Location for PDF files..."
    global targetFolder
    set varBasename to "CTB"
    tell application "Adobe InDesign CS3"
    -- Environment test: We want 1 book, no documents open:
    try
    get document 1
    display dialog "Please run this script without any documents open (except one Book)" buttons "OK" default button 1
    return
    on error
    -- we must be good to go, no documents open
    end try
    try
    set thBook to book 1
    on error
    display dialog "Please open an InDesign Book to use this script" buttons "OK" default button 1
    end try
    if modified of thBook then
    display dialog "This Book has been modified. Do you want to continue running the script?" buttons {"Cancel", "Yes"} default button 1
    end if
    tell thBook
    set countOfThBook to (count of book contents)
    set thContentsList to (full name of book contents) as list
    end tell
    -- return {countOfThBook, thContentsList}
    set user interaction level of script preferences to never interact -- avoid any dialogs (for printing or saving)
    set n to 0
    repeat with j from 1 to countOfThBook -- loop through book's documents
    set thDoc to item j of thContentsList
    open thDoc
    tell active document
    repeat with c from 1 to (count of every ink)
    tell ink c
    set convert to process to true
    end tell
    end repeat
    set myName to varBasename
    repeat with i from 1 to count of pages -- loop through book's pages
    set y to name of page i
    set n to n + 1
    tell print preferences
    set page range to y --page range sets which page(s) to print
    set active printer preset to thPrintSettings
    set print file to alias ("" & targetFolder & myName & "_" & n & ".ps")
    end tell
    print --without print dialog
    end repeat
    close saving no
    end tell
    end repeat
    end tell
    Every time I try to run it I get the following error:
    AppleScript Error
    Adobe InDesign CS3 got an error: Invalid parameter.
    Help!!!

    On 2/12/08 1:52 AM, "Jaime C. Starkey" <[email protected]> wrote:<br /><br />> I replaced the "set active printer preset" line to "set thPrintSettings to<br />> printer preset "CTB"<br /><br />No -- you should leave the "set active printer preset to thPrintSettings"<br />line as it was. The line you need to change is "set thPrintSettings to<br />"Publishers PDF standard"" -- that's where you need to insert "printer<br />preset".<br /><br />-- <br />Shane Stanley <[email protected]><br />AppleScript Pro Florida, April 2009 <a href=http://scriptingmatters.com/aspro>

  • Applescript error 600

    I keep getting an Applescript error -600.........application isn't running.  When I click on "ok" Cocktail opens and runs pilot.  The script is then gone but eventually comes back.  Is there any way to stop this error from appearing?
    Thanks for helping.
    Ron

    That error was reported as a Cocktail error in pre- 6.3 versions. (See: fixed problems with a -600 error)
    Try uninstalling Cocktail to see if Cocktail is causing the error.

  • AppleScript error -609 in Automator workflow

    I created an AppleScript on one computer and incorporated it in an Automator workflow. The script works perfectly well stand-alone or as part of the workflow.
    Then I copied both files to a headless computer via VNC. I adjusted the workflow to look at the new location of the script, and the script itself to look at the new location of the file it's processing. Now, on that second computer, the script works perfectly well by itself, but I get AppleScript error -609 Connection Is Invalid if it's run from the workflow.
    For testing purposes I reduced the script to its simplest expression:
    tell application "Finder"
    end tell
    and it's still generating the error.
    Strangely, from the workflow the full script does what's it's supposed to, but the workflow stops because of the error. The error appears even if this script is alone in the workflow. Does anybody know what it means?

    That error means that the script wasn't able to communicate with the targeted application properly, which can happen if the application crashes while the script is running. If that error doesn't cause any problems, it's appearance can be suppressed:
    try
    (your code)
    on error number -609
    end try
    This construct will not execute any code on or after the line which produces the error.
    (32099)

  • Connecting with Bluetooth--AppleScript Error

    My current internet connection is through my mobile company here in Italy while studying abroad using the bluetooth of my phone. There's a program that I have to run from the company to connect, and the first few days after installing Leopard I was able to still connect, but with several glitches (i.e. locking up, my menu bar freezing in the connection, time, and power area showing the pinwheel when I hovered over it) and this caused me to have to force my laptop to shut down by holding the power button on several occasions.
    Now when I open the program, as it is loading the phone information and taking control of the network settings, I am greeted by a message saying, "The application FMM3MYIC quit unexpectedly." offering me to ignore, report, or relaunch. Both ignoring and relaunching lead to a second message saying (translated from Italian) "AppleScript Error: The localconnectionstatus variable is not defined. (-2753)" Ultimately this leads me without a connection.
    Any hints as to why it was running fine before and not now? I've recently installed the two latest updates thinking that might help and deleted the files as well as re-installed the program.
    I know nothing really about scripts, but would it be possible to edit the script for the program. Any help would be great--I went to a local Mac store (not an official one--just a support and sales place) here in Milan and they were really of no help. His suggestion was to run DiskUtility, which did me no good. Anyway thanks in advance.

    Could you verify a couple of things please?
    Are the 64-bit desktop and 32-bit laptop both paired to the same Nokia 5800, and are they used in such a way that both computers could be connected via Bluetooth to the 5800 at the same time? You should verify that the previous Bluetooth connection is turned off before using another. This can be done for example by disabling the bluetooth dongle from the other computer. It could be said that Ovi Suite doesn't support connecting to a mobile phone from multiple computers.
    Are you able to pair your Nokia 5800 with the Toshiba laptop at all? Or did I understand the problem correctly, that after restarting the Mobile device, it can be connected to the laptop? If it is a pairing problem, you could try pairing the device outside Ovi Suite by using the Microsoft Bluetooth stack directly.
    If the problem is not one of the above mentioned, and it persists, it could help if you post the following information to your reply (from Ovi Suite):
    Help->About->System Information->Copy text to clipboard

  • I am trying to load a calpatch to a program called Caldera, but i keep getting the following "AppleScript Error – Terminal got an error:apple event timed out ( -1712)" my IOS is Yosemite, and i am running the latest version of the caldera program

    I am trying to load a calpatch to a program called Caldera, but i keep getting the following “AppleScript Error – Terminal got an error:apple event timed out ( -1712)” my IOS is Yosemite, and i am running the latest version of the caldera program

    Hi Linc, thanks for this ... it is weird, we tried this previously, but we only did a restart.
    This morning our Mac was 'off' even though we hadn't turned it off, (maybe a power outage) I restarted and ran the calpatch immediately, and it worked !!
    it is embarrassing, because as a service engineer, I am always telling customers to restart and even power down completely before trying again.
    Thanks.
    Snakeydee

  • AppleScript Error when use with VisualHub

    Hi all,
    When i try to convert any movie with audio on VisualHub, then will show up these:
    sh: -c: line 1: unexpected EOF while looking for matching
    sh: -c: line 2: syntax error: unexpected end of file (2)
    Pls help or how can i fix it?
    Many Many Thanks
    morningpanda

    And your AppleScript code looks like ? ...
    **The Applescript error**
    **sh: -c: line 1: unexpected EOF while looking for matching**
    **sh: -c: line 2: syntax error: unexpected end of file (2)**
    And the format of the movie file (to be converted) is ? ...
    *quicktime to mp4*

  • Automator/Applescript error for Library selection - workarounds ?

    I am creating some Automator actions to simplfy my workflow, but do it in a way that suits me. eg.
    Step 1. Copy CF images to Time Capsule (easy)
    Step 2. Import CF images into Aperture doing the following:
    a. Import with option to create a new project (non-refd)
    b. Set ratings to 1.
    c. Set some IPTC data.
    d. Select some basic keywording
    Bang ! - import it all
    Seems and is reasonably easy, however two observations in the import to Aperture execution:
    - It runs very slowly (i might be able to live with this)
    - I often get an Applescript error and it seems linked to this old Apple doc asking me to add a 'Set Aperture Library" step in the Applescript ?! Huh ?
    http://docs.info.apple.com/article.html?artnum=307040
    Currently triggering both actions as Applications, but hope to sequentiall link them if i can get the solve for the error.
    Q1. Can i 'fix' this error within Automator actions ?
    Q2. Is it normal for the set rating and IPTC tagging to be glacial slow ?
    Getting more impressed with Automator power, but it sometimes seems to be a little flakey (perhaps or its me!)
    Appreciate any pointers...

    Scripts currently run v. slowly if you have a large library... submit a bug using the feedback form!

  • So I downloaded the wrong Airplane Mode program for my operating system and I now have AppleScript Error message.  It will not allow me to quit the program.  Also, once that happens how do I remove the program from the computer?

    So I downloaded the wrong Airplane Mode program for my operating system and I now have AppleScript Error message.  It will not allow me to quit the program.  Also, once that happens how do I remove the program from the computer?

    What Airplane Mode program? To stop a running program launch Activity Monitor (in utilities folder) and quit the program from there. To remove the program drag it to the trash or better use the uninstaller that should have come with it.

  • No sound -- AppleScript error

    I don't have sound on my iMac G5 running OS 10.5.8
    This problem just developed recently, but I think it relates to a little program I installed a long time ago called psst! (it's supposed to make the startup chime quieter) I also recently installed a newer version of Finale (Finale 2011) that I was using to play midi sounds through my internal speaker.
    When I shut the computer down I see a error message with an icon from psst. The error reads:
    AppleScript Error
    Can't make missing value into type integer. (-1700)
    I tried turning off psst!, but I can't because the same error message comes up. I tried removing Psst! to the trash, but that didn't help. I installed a new version of Psst! and that didn't fix the problem either.

    Turns out that I found the answer to this question in an iMac G5 discussion. It appears that I was correct in assuming a program messed up my sound settings. When that happens, the easiest and quickest way to return them to normal is to open up and use Garage Band and have it make some sound. At least, that just worked for me! I guess Garage Band takes charge and puts things in their proper places.

  • Applescript errors in 10.5.1

    I have 2 x iMacs, one a mid2007 and one a late 2006. Both have varying degrees of applescript errors. The mid 2007 reports an applescript error when using alarm clock pro and/or Superduper. The late 2006 has applescript errors all over the place especially when using maintainence (3rd party) utilities.It is also very prone to spinning beach ball. I've tried creating a new user but thats the same - also safeboot mode (still applescript errors) This particular machine works fine when logged in as root. I suspect the other will too although I haven't checked it yet as root user. All the applications that have applescript errors on these machines, work well on my Mac Pro. All my machines are bang up to date with all the latest software updates. I've done a pretty intensive google search but haven't found a fix from it. Please E-Mail [email protected] if you could assist me please. If possible, I want to avoid an archive & Install.PS - Have cleared out caches, and deleted swap files etc.

    It sounds like a permission issue. Particularly if everything runs ok as root.
    You'll have to check all the permissions against the working mac.

  • Serious Unarchive and Applescript Errors

    I have run into a little problem.
    After cleaning up some of my applications, something went weird and I can not unarchive a file using the OS BOMarchivehelper and several applications give me applescript errors.
    When I try to unzip a file, I get this error:
    Unable to unarchive: "CoreDuoTemp.zip" into "Downloads". (Error 32 - Broken Pipe.)
    When I use another app to unzip the coreduo app, and attempt to run the app I get this error:
    AppleScript Error
    sh: line 1: top: command not found
    sh: line 1: grep: command not found
    sh: line 1: cut: command not found(127)
    another app brings up:
    sh: line 1: defaults: command not found(127)
    I have googled these errors and nothing useful has come up. If anyone has any ideas as to how get these two portions of the OS to function properly (without reinstalling), I would greatly appreciate it.

    There are at least 3 possibilities here as all those commands are in the /usr/bin/ folder with Mac OS X 10.5.1
    1. You've deleted the /usr/bin folder or maybe just reset it's permissions.
    2. You've deleted or munged the setup file (probably bash.rc or profile.rc) for the shell you're using so that it isn't setting the "path" variable correctly. Execute "echo $PATH" in terminal to show it. It should contain several colon separated posix paths and appear something like this -
    /bin:/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sb in
    3. If you are in single user mode, you haven't typed in the full path to the commands i.e. "/usr/bin/defaults"
    Try "/usr/bin/whereis top" in your shell to see if it exists. If it doesn't return a path to the command or otherwise errors, you might want to re-install the Mac's OS as you may have a lot of stuff missing. If it does return a path then it's either item 2 or 3.
    Note: As "whereis" is also located in /usr/bin it will not work if the folder is gone or damaged.

  • AppleScript Error Codes

    If this isn't a FAQ, it should be (but there doesn't seem to be a FAQ for this topic, and searches fail).
    The question: Where can I find a list of AppleScript Error Codes.
    This simple bit of code
    tell application "Oracle Calendar"
    activate
    end tell
    Started generating a -10660 error, and it took me longer than it should have to discover that the script was pointing at the old version of the application that I had in the trash, and not the new version that replaced it. Easily remedied once I knew what the problem was.
    So, is there a canonical link out there with AppleScript error codes?
    Thank you.

    HD,
    Deeply impressed by your detective work on this error code. Wonder if you can help me with another.
    I am scripting Filemaker using 'do applescript steps'. Once the AS is done i pass back info by using AS to tell FM to set one of its own fields. So for more clarity -
    IN FM
    Call Filemaker script
    Call Applescript script
    tell filemaker to set a field to the value of an AS variable
    end Applescript script
    end Filemaker script
    and sometimes i get a -10011 Error on that Filemaker setting field step. The error message is "Data being accessed by another user,script or transaction". Can you throw any light ? (more details here)
    No one else is using the db or even logged on at the time of these errors.
    Thanks

  • Applescript error problems

    I'm not too familiar with applescript. I've never used it much to create my own scripts (other than an automated script to log onto my server when I boot). Suddenly many of the small, free programs I use give applescript errors when starting up and then shut down (programs like cacheoutX, fetchart, etc). My wife's user account on the same computer works fine (no applescript errors when using these same programs). How do I fix/reinstall applescript? If no one knows how, is there an easy way to reinstall my own user account (I'm the admin and original user account)? I'm getting sick of this and it's one of the first big headaches I've had with OS X that I haven't been able to find an easy fix for. Please help! and thanks so much...
    -Dan
    p.s. The appelscript error is "NSRecieverEvaluationScriptError: 4 (1)"

    Dan,
    Brute force is not the solution.
    Let's try the following:
    1. Remove the applescripts that don't work: Script-scroll-thingy > Open Scripts Folder > User Scripts folder > delete non-functional scripts from it.
    Check for duplicates of the non-functioning scripts in the Library Scripts folder.
    Now delete the applescript .plist.
    Delete trash.
    Restart to rebuild the plist.
    Run an Applescript to test. Does it work?
    Yes: Add back your Applescripts one at a time and test them individually.
    No: Use Cocktail or Onyx to clean your caches and try again.
    -Wayne
    PS When this is sorted, please make yourself an ordinary user. First, create an admin profile just for updates and installation. You should do this because it's far easier to bork your Mac from an admin profile than from a user profile. Unlike the convicted monopoly OS, OS X will nicely ask you for the admin user/password when it wants to do things to your system that are inherently dangerous. If you're cautious enough, you should never have to log into the admin profile. Just remember to give it a non-"admin" user name and use a strong password.

  • APPLESCRIPT ERROR 10827-3RD PARTY BRATTOO-W/IPHOTO

    AM USING A 3RD PARTY APP BY BRATTOO---THUMBNAIL ERADICATOR AND DUPLICATE ANNIHLATOR-ALL WAS WORKING FINE UPTIL A FEW DAYS AGO-NOW WHEN I OPEN THE APP TO USE I get a applescript error-10827 and I can't use the app. Brattoo says its a very strange error message and basically don't know what to do. I put my snow leopard disc in and used the disc utility to repair sys. that seemed to work for a while, but this am. I am back to the same problem.I trashed prefs on the app and on i-photo.
    any ideas out there????
    Dickster------------

    I didn't actually read your message after I saw that you were using a capitals.
    Now after reading this time I would suggest that you send use the strange error message.
    While it might seem strange to your eye, it just might be meaningful to someone here.
    Allan

  • Applescript error: curl: (6) Couldn't resolve host 'javascript:bookmark();'

    I'm using the Get Link URLs from Webpages Safari action and I keep getting the following error:
    Applescript error: curl: (6) Couldn't resolve host 'javascript:bookmark();'
    Any idea how to fix this or is this just a bug in Automator?

    It seems to happen on almost any webpage. Originally I tried it on
    http://www.ebaumsworld.com/
    and got the following error:
    curl: (6) Couldn't resolve host 'javascript:window.external.AddFavorite('http:' (1)
    Then I tried running it accidentally while typing this page (http://discussions.apple.com/post!reply.jspa?messageID=2834805) and got:
    sh: -c: line 1: unexpected EOF while looking for matching `''
    sh: -c: line 2: syntax error: unexpected end of file (2)
    Here's the workflow:
    Get current webpage
    Get link urls from webpage (only return URLs in the site domain)
    Get link urls from webpage (option NOT checked)
    this is where it fails.
    It seems the action is not very robust as far as handling errors. You'd think one of Apple's built-in actions would be better tested.

Maybe you are looking for

  • IMac Dual-display colour profiling on second LG monitor

    Hey guys, I just purchased a second screen for my imac to use dual display, im a graphic designer and really need the space. What is the easiest and best way of mirroring the colour setting of the iMac to my second screen without the use of 3rd party

  • Mac Mini crashing

    Since updating to 10.10 my mini is crashing once a day. It restarts automatically and displays a message that there was a problem and to touch any key to continue restoration. I am using Safari when the crashes happen. Has anyone found the reason and

  • NOTIONAL HIRE CHARGES

    how to take notional hire charges report for company. we know to take notinal hire charges report to profitability statement whereas, we wanted to see cost element wise details for whole company.  please provide tcode for the same

  • Problem with WorkShop 3.2 when lanching tomcat

    hi!I met a problem with debugging projects in WorkShop. I'm using tomcat 5.5.17 in WorkShop studio 3.2.All my server configurations are default!When debugging,I just right clicked on the project and chose "debug on server",then tomcat lanched.During

  • Problem in scroll tab layout policy

    Hi everyone!! I made a application using tabbedpanes. My problem is when i put an "x" button for close in the tab title area the scroll tab layout policy are not working, but if no button it's working. I need a closable Jtabbedpane with scroll tab po