AppleScript for Viscosity error

I am trying to set up port forwarding using the application Viscosity. I found the following code online which allows me to port forward using Transmission:
set
vpn_ip to do shell script "ifconfig tun0 | grep inet | awk '{print $2}'" # get current ip of vpn interface
set
vpn_port to do shell script "curl -d \"user=MYUSERNAME&pass=MYPASSWORD&client_id=$(cat ~/.pia_client_id)&local_ip=" & vpn_ip & "\"https://www.privateinternetaccess.com/vpninfo/port_forward_assignment 2> /dev/null|grep -oE \"[0-9]+\""
do shell script
"defaults delete org.m0k.transmission BindPort" # delete previous port value
do shell script
"defaults write org.m0k.transmission BindPort " & vpn_port & ""
do shell script
"defaults delete org.m0k.transmission BindAddressIPv4" #delete previously written ipv4binding value
do shell script
"defaults write org.m0k.transmission BindAddressIPv4 " & vpn_ip & "" #write current vpn ip into transmission.plist
I now get the following error status in AppleScript when I try to "run" the script:
error "The command exited with a non-zero status." number 1
Any ideas what this means and how I can fix it and get the script working?

I added the lines of script as requested so the script in full now reads as:
set vpn_ip to do shell script "ifconfig tun0 | grep inet | awk '{print $2}'" # get current ip of vpn interface
display dialog vpn_id
set vpn_port to do shell script "curl -d \"user=USERNAME&pass=PASSWORD&client_id=$(cat ~/.pia_client_id)&local_ip=" & vpn_ip & "\"https://www.privateinternetaccess.com/vpninfo/port_forward_assignment 2> /dev/null|grep -oE \"[0-9]+\""
display dialog vpn_port
do shell script "defaults delete org.m0k.transmission BindPort" # delete previous port value
do shell script "defaults write org.m0k.transmission BindPort " & vpn_port & ""
do shell script "defaults delete org.m0k.transmission BindAddressIPv4" #delete previously written ipv4binding value
do shell script "defaults write org.m0k.transmission BindAddressIPv4 " & vpn_ip & "" #write current vpn ip into transmission.plist
(Censored my username and password).
I run the script and get this error:
error "The variable vpn_id is not defined." number -2753 from "vpn_id"
With the first new additional code highlighted "vpn_id".
display dialog vpn_id
I created the .pia_client_id file but running a line of code in Terminal (which was detailed in the oringal thread where I found the script). The code I ran in Terminal was:
head -n 100 /dev/urandom | md5 > ~/.pia_client_id
Thanks so much for your assistance so far, I really appreciate it.

Similar Messages

  • Applescript for mail error can't get message id

    I have an applescript (found on internet) for Mail 4.5 that deletes messages in "on my mac" mailbox "Deleted Inbox" that are older than 120 days. The script runs from an iCal daily event. I drag messages from Inbox to "Deleted Inbox" when I don't want the message in Inbox, but I want to save the message for 120 days before deleting it. The script sometimes runs successfully, and sometimes gives error "Mail got an error: Can't get message id xxx of mailbox "Deleted Inbox"". Then in Mail, I "Mailbox / Rebuild" that mailbox, and run the script manually without error. How can I avoid that error? The script is essentially:
    tell application "Mail"
              set OldStuff to every message of mailbox TheBox where date received of it < OldDate
              repeat with ThisMessage in OldStuff
        delete ThisMessage
              end repeat
    end tell
    Thanks for any help.
    Ken

    How can I avoid that error?
    I don't actually know how you can avoid that error. However, maybe you can use a workaround and have the script rebuild the mailboxes automatically when such an error occurs. Try the following code:
    tell application "Mail"
      try
        set OldStuff to every message of mailbox TheBox where date received of it < OldDate
      on error
        activate
        tell application "System Events" to click menu item "Rebuild" of menu 1 of menu bar item "Mailbox" of menu bar 1 of process "Mail"
        delay 1 -- adjust if necessary
        set OldStuff to every message of mailbox TheBox where date received of it < OldDate
      end try
      repeat with ThisMessage in OldStuff
        delete ThisMessage
      end repeat
    end tell
    Since the above script uses GUI Scripting, you must enable the Accessibility Frameworks by clicking the checkbox labeled "Enable access for assistive devices" in the Universal Access System Preference pane.
    Message was edited by: Pierre L.

  • Help with a simple applescript for combining Artist text with Track name

    Hi all,
    I'd like to put together a simple script that takes the artist names from a list of tracks in iTunes and copies the text to the start of the Title name, followed by " - ".
    This is because, e.g. on a classical album, I want the artist names to all be "Classic Collection Gold" but I'd like to keep the artist name contained with the track name. This means when I browse by artist I don't get millions of artists...
    I found this script, which does something kinda similar, but I'm new to script writing so not sure how to do it?
    So I'd like to change:
    Name
    Planets: Mars
    Artist
    Gustav Holst
    Ambum:
    Simply Classical Gold (Disc 2)
    To be:
    Gustav Holst - Planets: Mars
    Artist
    Gustav Holst - Planets: Mars OR BETTER Simply Classical Gold (Disc 2)
    Album
    Simply Classical Gold (Disc 2)
    This script has some ideas in, but I'm not sure how to tweak it....
    "Artist - Name Corrector" for iTunes
    written by Doug Adams
    [email protected]
    v1.6 May 17, 2004
    -- removed ref to selection
    v1.5 April 11 2004
    checks if separator string is in name
    v1.0 April 2 2004
    Get more free AppleScripts and info on writing your own
    at Doug's AppleScripts for iTunes
    http://www.malcolmadams.com/itunes/
    property separator : " - "
    tell application "iTunes"
    if selection is not {} then
    set sel to selection
    repeat with aTrack in sel
    tell aTrack
    if (get name) contains separator then
    set {artist, name} to my texttolist(get name, separator)
    end if
    end tell
    end repeat
    end if
    end tell
    -- == == == == == == == == == == == == == == == ==
    on texttolist(txt, delim)
    set saveD to AppleScript's text item delimiters
    try
    set AppleScript's text item delimiters to {delim}
    set theList to every text item of txt
    on error errStr number errNum
    set AppleScript's text item delimiters to saveD
    error errStr number errNum
    end try
    set AppleScript's text item delimiters to saveD
    return (theList)
    end texttolist
    Message was edited by: Chipstix

    I'm not sure what that script thinks it's doing, but it's essentially doing nothing, so scrub that and start afresh.
    The first thing you need is a way to identify the tracks to change - you don't want to do all tracks in the library (they might have already been munged). A good option is to work on the selected tracks:
    tell application "iTunes"
    if selection is not {} then
    set sel to selection
    You then need to iterate through those items, changing them one-by-one:
    repeat with aTrack in sel
    Now comes the easy part - build a list of the elements you want (in this case you want the name, artist, and album of each track:
    set trackName to name of aTrack
    set trackArtist to artist of aTrack
    set trackAlbum to album of aTrack
    Now you have the information you need, so reset the fields as appropriate:
    set name of aTrack to trackArtist & " - " & trackName
    set artist of aTrack to trackAlbum -- or to trackArtist & " - " & trackName, depending on your choice
    Now clean up by closing off the repeat and tell blocks:
    end repeat
    end tell
    Putting it all together you get:
    tell application "iTunes"
      if selection is not {} then
      set sel to selection
      repeat with aTrack in sel
        set trackName to name of aTrack
        set trackArtist to artist of aTrack
        set trackAlbum to album of aTrack
        set name of aTrack to trackArtist & " - " & trackName
        set artist of aTrack to trackAlbum -- or to trackArtist & " - " & trackName, depending on your choice
      end repeat
    end tell

  • Applescript 'Contacts' code error with Maverick

    After upgrading from MacOSX 10.6.8 to Maverick my applescripts are creating errors. One example is the following script which works fine if you run it from within the 'Applescript Editor.app' (v 2.6.1) under Maverick but creates a "Data paste section" error -1743 from the 'Contacts' app if you run the script indpendently. Any hints anyone on how I might return this script to full indpendent functionality?
    Script to load a raw address for conversion and inserting into Address Book
    Wish list
    1.    Check if 'New Address' Group already exists and if it doesn't then create one.
    2.    Provide a dialog that enables the user to specify which group to attach the new address to.
    3.    Find the new address and show it in Address Book.
    4.    Create a list of existing Groups to chose from to reduce keyboard error. --> done but the resultant window is not complete - no scroll bar becomes active.
    Problem code:
    set theFiles to (every file of folder addressesFolder) as alias list
    global ABactive, aExists
    property testText : "http://address-parser.com"
    property newGroup : "New Addresses" --> Default group for new address additions
    property aPrefix : ""
    property aFirstName : ""
    property aMiddleName : ""
    property aLastName : ""
    property aSuffix : ""
    property aPosition : ""
    property aDepartment : ""
    property aCompany : ""
    property aCompany2 : ""
    property aStreet : ""
    property aStreet2 : ""
    property aPostbox : ""
    property aPlace : ""
    property aPostPlace : ""
    property aState : ""
    property aZip : ""
    property aPostboxCode : ""
    property aCountry : ""
    property aPhone : ""
    property aPhone2 : ""
    property aMobile : ""
    property aFax : ""
    property aEmail : ""
    property aWebsite : ""
    property aNote : ""
    set newline to ASCII character 10
    -- Select the desired file
    try
        set addressFile to (choose file with prompt "Choose an address file:" of type {"public.text"} without invisibles) as text
        --    set addressFile to (choose file with prompt "Choose an address file:" of type {"public.text"} default location addressesFolder without invisibles) as text
        -- note the data type set for 'addressFile' is 'text'
    on error number -128
        -- User pressed 'Cancel' button
        return
    end try
    set AppleScript's text item delimiters to {":"}
    set fileName to last text item of addressFile
    set AppleScript's text item delimiters to {""}
    (* If there is an error while processing the address file, delay it just long enough to close the file access. Otherwise continue. *)
    set addressFileReference to open for access addressFile
    -- 'addressFileReference' is the 'returned access number'
    -- Check first to see whether the file was created with output from the expected source
    try
        set wholeFile to read addressFileReference as text
        if (offset of testText in wholeFile) is equal to 0 then
            display dialog "File chosen is:" & return & fileName & return & return & "This file does not appear to contain output from the 'http://www.address-parser.com' demo page." buttons {"Cancel"} default button 1 with title "Error!" with icon stop
        end if
    on error number -128
        -- User pressed 'Cancel' button
        close access addressFileReference
        set wholeFile to ""
        return
    end try
    close access addressFileReference
    set wholeFile to ""
    -- Reopen file (need to clarify why EOF error if two read calls made with file open).
    set addressFileReference to open for access addressFile
    try
        set AppleScript's text item delimiters to {""}
        -- Read address file contents in 'addressFileContents' as a list delimited by paragraph and tab.
        set x to paragraphs of (read addressFileReference as text)
        set addressFileContents to {}
        set AppleScript's text item delimiters to tab
        repeat with i from 1 to count x
            set addressFileContents's end to x's item i's text items
        end repeat
        set AppleScript's text item delimiters to {""}
        repeat with i from 1 to count of addressFileContents
            if (item i of addressFileContents) is not {} then
                --Every line must be checked as there is no set order
                if text item 1 of (item i of addressFileContents) is "Prefix= " then ¬
                    set aPrefix to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "First name= " then ¬
                    set aFirstName to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Middle name= " then ¬
                    set aMiddleName to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Last name= " then ¬
                    set aLastName to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Suffix= " then ¬
                    set aSuffix to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Position= " then ¬
                    set aPosition to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Department= " then ¬
                    set aDepartment to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Company= " then ¬
                    set aCompany to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Company - line 2= " then ¬
                    set aCompany2 to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Street address= " then ¬
                    set aStreet to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Street address - line 2= " then ¬
                    set aStreet2 to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Postbox address= " then ¬
                    set aPostbox to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Place name= " then ¬
                    set aPlace to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Post place name= " then ¬
                    set aPostPlace to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "State/Region/Province= " then ¬
                    set aState to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "ZIP/Postal code= " then ¬
                    set aZip to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Postal code of postbox= " then ¬
                    set aPostboxCode to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Country= " then ¬
                    set aCountry to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Phone= " then ¬
                    set aPhone to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Phone 2= " then ¬
                    set aPhone2 to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Mobile phone= " then ¬
                    set aMobile to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Fax= " then ¬
                    set aFax to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Email= " then ¬
                    set aEmail to text item 2 of (item i of addressFileContents)
                if text item 1 of (item i of addressFileContents) is "Web site= " then ¬
                    set aWebsite to text item 2 of (item i of addressFileContents)
                --Collect unrecognised elements and place them in the 'Note' field
                if text item 1 of (item i of addressFileContents) contains "Unrecognized values:" then
                    set i to i + 1
                    set aNote to "Additional address bits:"
                    repeat with i from i to count of addressFileContents
                        --display dialog "Note text reads:" & return & "aNote:" & tab & "'" & aNote & "'" & return & "Line #:" & tab & i & return & (item i of addressFileContents) as text default button 1 with title "Debug Dialog"
                        if (item i of addressFileContents) is not {} then
                            if item 1 of (item i of addressFileContents) is "" and ¬
                                item 2 of (item i of addressFileContents) is not "" then
                                set aNote to aNote & newline & text item 2 of (item i of addressFileContents)
                            end if
                        end if
                    end repeat
                end if
            end if
        end repeat
    on error errMsg number errNum
        close access addressFileReference
        -- do some sort of error processing here
        display dialog "An error occurred with the following number and description: " & return & errNum & return & errMsg & return & return & "Item " & (i as string) & tab & "'" & (item i of addressFileContents) & "'" with title "Data load section."
        error errMsg number errNum
    end try
    close access addressFileReference
    --Debug dialogs
    --display dialog (item 1 of addressFileContents as text) & return & return & (item 2 of addressFileContents as text) & return & return & (item 3 of addressFileContents as text) & return & return & (item 4 of addressFileContents as text)
    --display dialog "title:" & tab & tab & tab & aPrefix & return & "first name:" & tab & tab & aFirstName & return & "middle name:" & tab & tab & aMiddleName & return & "last name:" & tab & tab & aLastName & return & "suffix:" & tab & tab & tab & aSuffix & return & "job title:" & tab & tab & tab & aPosition & return & "department:" & tab & aDepartment & return & "organization:" & tab & aCompany with title "Just prior to new record insertion:" with icon note
    --check if Contacts application is active
    tell application "System Events"
        if exists application process "Contacts" then
            set ABactive to true
        else
            set ABactive to false
        end if
    end tell
    --display dialog "title:" & tab & tab & tab & aPrefix & return & "first name:" & tab & tab & aFirstName & return & "middle name:" & tab & tab & aMiddleName & return & "last name:" & tab & tab & aLastName & return & "suffix:" & tab & tab & tab & aSuffix & return & "job title:" & tab & tab & tab & aPosition & return & "department:" & tab & aDepartment & return & "organization:" & tab & aCompany with title "Just prior to create new entry:" with icon note
    --create new address entry
    tell application "Contacts"
        try
            --if the aCompany2 variable is filled append its contents to the aCompany variable
            if aCompany2 is equal to "" then
                set thePerson to make new person with properties ¬
                    {title:aPrefix, first name:aFirstName, middle name:aMiddleName, last name:aLastName, suffix:aSuffix, job title:aPosition, department:aDepartment, organization:aCompany}
            else
                set aCompany to aCompany & newline & aCompany2
                set thePerson to make new person with properties ¬
                    {title:aPrefix, first name:aFirstName, middle name:aMiddleName, last name:aLastName, suffix:aSuffix, job title:aPosition, department:aDepartment, organization:aCompany}
            end if
            --set the Company view binary if no First and Last name
            if (first name of thePerson is equal to "") and (last name of thePerson is equal to "") then ¬
                set the company of thePerson to true
            tell thePerson
                if aPhone is not equal to "" then ¬
                    make new phone at end of phones with properties ¬
                        {label:"work", value:aPhone}
                if aPhone2 is not equal to "" then ¬
                    make new phone at end of phones with properties ¬
                        {label:"other", value:aPhone2}
                if aMobile is not equal to "" then ¬
                    make new phone at end of phones with properties ¬
                        {label:"mobile", value:aMobile}
                if aFax is not equal to "" then ¬
                    make new phone at end of phones with properties ¬
                        {label:"fax", value:aFax}
                if aEmail is not equal to "" then ¬
                    make new email at end of emails with properties ¬
                        {label:"Work", value:aEmail}
                if aWebsite is not equal to "" then ¬
                    make new url at end of urls with properties ¬
                        {label:"Work", value:aWebsite}
                if aStreet is not equal to "" then
                    if aStreet2 is equal to "" then
                        make new address at end of addresses with properties ¬
                            {label:"work", street:aStreet, city:aPlace, state:aState, zip:aZip, country:aCountry}
                    else
                        make new address at end of addresses with properties ¬
                            {label:"work", street:aStreet & ", " & aStreet2, city:aPlace, state:aState, zip:aZip, country:aCountry}
                    end if
                end if
                if aPostPlace is equal to "" then set aPostPlace to aPlace
                if aPostbox is not equal to "" then
                    if aPostboxCode is not equal to "" then
                        make new address at end of addresses with properties ¬
                            {label:"postal", street:aPostbox, city:aPostPlace, state:aState, zip:aPostboxCode, country:aCountry}
                    else
                        make new address at end of addresses with properties ¬
                            {label:"postal", street:aPostbox, city:aPlace, state:aState, zip:aZip, country:aCountry}
                    end if
                end if
                if aNote is not equal to "" then set note to aNote
            end tell
            -- place the new entry into a group
            set myGroups to name of every group
            set theGroup to (choose from list myGroups with prompt "Attach to which group?" without multiple selections allowed and empty selection allowed) as text
            --If user selects 'Cancel' button the value of the result variable is 'false'
            if theGroup is not "false" then
                add thePerson to group theGroup
            else
                -- create a default group and place the entry in there; first testing to see whether the default group already exists
                try
                    if group newGroup exists then ¬
                        display dialog "newGroup exists" with icon 1
                    add thePerson to group newGroup
                on error number -1728
                    -- newGroup does not exist so create it
                    display dialog "newGroup does not exist. Make new group with newGroup" with icon 1
                    set theGroup to make new group with properties {name:newGroup}
                    add thePerson to group newGroup
                end try
            end if
            save application "Contacts"
            set selection to (thePerson)
            activate
    --set flag that new address entry was successful by seeking
            if the selection is equal to properties ¬
                {title:aPrefix, first name:aFirstName, ¬
                middle name:aMiddleName, last name:aLastName, ¬
                suffix:aSuffix, job title:aPosition, ¬
                department:aDepartment, organization:aCompany} then ¬
            set aExists to true
        on error errMsg number errNum
            -- do some sort of error processing here
            display dialog "An error occurred with the following number and description: " & return & errNum & return & errMsg with title "Data paste section."
            error errMsg number errNum
        end try
        --if we opened the AB, we'll close it
        if not ABactive then quit
    end tell
    --clear address variables content in case of repeat use
    set aPrefix to ""
    set aFirstName to ""
    set aMiddleName to ""
    set aLastName to ""
    set aSuffix to ""
    set aPosition to ""
    set aDepartment to ""
    set aCompany to ""
    set aCompany2 to ""
    set aStreet to ""
    set aStreet2 to ""
    set aPostbox to ""
    set aPlace to ""
    set aState to ""
    set aZip to ""
    set aPostboxCode to ""
    set aCountry to ""
    set aPhone to ""
    set aPhone2 to ""
    set aMobile to ""
    set aFax to ""
    set aEmail to ""
    set aWebsite to ""
    set aNote to ""
    -- Delete original file if contents have been successfully added
    if aExists then
        try
            tell application "Finder"
                if exists file addressFile then
                    delete file addressFile --moves it to the trash
                end if
            end tell
        on error errMsg number errNum
            display dialog "Inserting new address was successfiul, however an error occurred while deleting the original file:" & return & addressFile buttons {"Cancel"} default button 1 with title "Error!" with icon stop
            display dialog ""
        end try
    end if
    -- End of 'add address' script

    Well, after a few days of restoring my cellphone (The C6-01 I mentioned before), I came to this:
    - After Hard resetting, the Lock Code is still erroneous;
    - After firmware reinstalling, Lock Code is erroneous;
    - Pulling out the battery, leaving the cellphone with no power for several hours, give the same result;
    - Downgrading firmware (previous version) did not fix the problem;
    Interesting thing is, after power on, the cellphone asks for the code lock: entering ANY number, returns "Code Error", and simply goes back to normal operation.
    Everything is working, except I can no use de Lock Code, or any function related to it.
    Of course, is pretty annoying to enter the lock code every time I power-on the cell.

  • How to write an applescript and ignore errors

    I'm writing an applescript that uses a shell command that will always return an error. Applescript stops as soon as the error occurs. I want the applescript to continue running. How should I tell Applescript to ignore errors?

    The basic construct is a try/end try block which runs your own code when an error occurs rather than stopping your script.
    An alternative when using do shell script is to suppress stdout and stderr so that errors are not returned to the application. Which you can do by appending ' > /dev/null 2>&1 &' to the end of the shell command.
    Note, though, that your command will not work as written because 'choose folder' will return an alias object which can not be passed to a shell command as-is. Shell commands require unix-style paths for all file/folder parameters. Fortunately, AppleScript makes this easy by providing a POSIX path command which will convert an alias to a unix path. Additionally, since Mac paths can commonly include spaces and other non-shell safe characters, you may want to quote the path, too, like:
    <pre class=command>set shell_script to "usr/local/bin/readpst -o " & quoted form of POSIX path of mbox_output & " " & pst_input & " > /dev/null 2>&1 &"</pre>

  • Applescript for sending selection as new Mail

    Hello. What i'm trying to achieve is adding an option to Safari for getting the selected text and sending it to Mail as the content of a new email message, along with the website's url. The already available action "New Mail Message" is able to do half of what i'm asking: it can send my selection to Mail as the content of a new emal message, but nothing more. I'm trying to compose an Applescript to run from within my Automator Service, but i'm getting an error: *The action "Run AppleScript" encountered an error.*
    Any ideas?
    Here is a screenshot of my Automator Workflow:
    http://tinypic.com/r/2qi2xom/3
    *And here is the script i'm using:*
    on run {input, parameters}
    set myBodyText to value of variable "mySelection" of front workflow
    set siteURL to value of variable "mySiteURL" of front workflow
    tell application "Mail"
    make new outgoing message with properties {visible:true, subject:"Something Interesting", content:"" & siteURL & myBodyText}
    end tell
    return input
    end run

    Javascript can return the selected text...
    tell application "Safari"
    tell document 1
    set selected_text to do JavaScript "var txt = '';
    if (window.getSelection)
        txt = window.getSelection();
    else if (document.getSelection)
        txt = document.getSelection();
    else if (document.selection)
        txt = document.selection.createRange().text;
    else return;
    set siteURL to URL
    end tell
    end tell
    tell application "Mail"
    activate
    make new outgoing message with properties {visible:true, subject:"Something Interesting", content:"" & siteURL & return & return & selected_text}
    end tell

  • Applescript for Mail Question

    Is it possible to create an Applescript for Mail, that, when an email with a specific subject line arrives in my inbox, an attached photograph would get sent immediately in response to the person who sent the email.  The subject lines would vary (e.g., people_1, or, places_16).  Every subject line would have a corresponding photo located somewhere on my hard drive (there would be hundreds of possibilities - the catalogue would be concentrated in one place).  So, for example, when "places_21" hits my Mail in box, an email would be generated in response, automatically, with a photo (places_21) attached.  Thank you!  Marcos

    Actually, it's not that hard to do, it's just that there are a lot of use cases, and a lot of caveats to consider.
    For example, do you intend/expect to work from a predefined list of image file names? Or do you want/expect to react to any filename that's requested?
    You say that the files would be 'somewhere on my hard drive'... how does the script know where to look? How does it resolve filename conflicts? What should happen if a file can't be found?
    As fane suggests, you should also consider an audit log, so you can see who asked for what, and when, along with errors that occurred on the way.
    So it's entirely do-able, just a lot of questions to answer before you get started.

  • Every time I save I get an "Adobe Save For Web Error"

    Hello everyone,
    Every time I save I get an "Adobe Save For Web Error" that says "Could not complete this operation.  An unknown error has occurred."
    I haven't the slightest idea what to do or what happened but I can't save anything and it's starting to really frustrate me. Below is the system info:
    ---------------------------------BEGINNING OF SYSTEM INFO-------------------------------
    Adobe Photoshop Version: 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00) x64
    Operating System: Mac OS 10.9.0
    System architecture: Intel CPU Family:6, Model:23, Stepping:6 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1
    Physical processor count: 2
    Processor speed: 2400 MHz
    Built-in memory: 4096 MB
    Free memory: 2139 MB
    Memory available to Photoshop: 3490 MB
    Memory used by Photoshop: 70 %
    Image tile size: 128K
    Image cache levels: 4
    OpenGL Drawing: Enabled.
    OpenGL Drawing Mode: Advanced
    OpenGL Allow Normal Mode: True.
    OpenGL Allow Advanced Mode: True.
    OpenGL Allow Old GPUs: Not Detected.
    OpenGL Version: 2.1 NVIDIA-8.18.27 310.40.05f01
    OpenCL Unavailable
    Video Card Vendor: NVIDIA Corporation
    Video Card Renderer: NVIDIA GeForce 9400M OpenGL Engine
    Display: 1
    Main Display
    Display Depth:= 32
    Display Bounds:=  top: 0, left: 0, bottom: 900, right: 1440
    Video Renderer ID: 16918030
    Video Card Memory: 235 MB
    Video Rect Texture Size: 8192
    Serial number: 92299702664043361605
    Application folder: Macintosh HD:Applications:Adobe Photoshop CS6:
    Photoshop scratch has async I/O enabled
    Scratch volume(s):
      Startup, 930.7G, 806.6G free
    Required Plug-ins folder: Macintosh HD:Applications:Adobe Photoshop CS6:Adobe Photoshop CS6.app:Contents:Required:
    Primary Plug-ins folder: Macintosh HD:Applications:Adobe Photoshop CS6:Plug-ins:
    Additional Plug-ins folder: not set
    Installed components:
       adbeape.framework   adbeape   3.3.8.19346   66.1025012
       AdbeScriptUIFlex.framework   AdbeScriptUIFlex   6.2.29.18602   66.490082
       adobe_caps.framework   adobe_caps   6.0.29.0   1.276181
       AdobeACE.framework   AdobeACE   2.19.18.19243   66.492997
       AdobeAGM.framework   AdobeAGM   4.26.17.19243   66.492997
       AdobeAXE8SharedExpat.framework   AdobeAXE8SharedExpat   3.7.101.18636   66.26830
       AdobeAXEDOMCore.framework   AdobeAXEDOMCore   3.7.101.18636   66.26830
       AdobeBIB.framework   AdobeBIB   1.2.02.19243   66.492997
       AdobeBIBUtils.framework   AdobeBIBUtils   1.1.01   66.492997
       AdobeCoolType.framework   AdobeCoolType   5.10.31.19243   66.492997
       AdobeCrashReporter.framework   AdobeCrashReporter   6.0.20120201  
       AdobeExtendScript.framework   AdobeExtendScript   4.2.12.18602   66.490082
       AdobeJP2K.framework   AdobeJP2K   2.0.0.18562   66.236923
       AdobeLinguistic.framework      17206  
       AdobeMPS.framework   AdobeMPS   5.8.0.19463   66.495174
       AdobeOwl.framework   AdobeOwl   4.0.93   66.496052
       AdobePDFL.framework   AdobePDFL   10.0.1.18562   66.419471
       AdobePDFSettings.framework   AdobePDFSettings   1.4  
       AdobePIP.framework   AdobePIP   6.0.0.1654  
       AdobeScCore.framework   AdobeScCore   4.2.12.18602   66.490082
       AdobeUpdater.framework   AdobeUpdater   6.0.0.1452   "52.338651"
       AdobeXMP.framework   AdobeXMPCore   66.145661   66.145661
       AdobeXMPFiles.framework   AdobeXMPFiles   66.145661   66.145661
       AdobeXMPScript.framework   AdobeXMPScript   66.145661   66.145661
       ahclient.framework   ahclient   1.7.0.56  
       aif_core.framework   AdobeAIF   3.0.00   62.490293
       aif_ocl.framework   AdobeAIF   3.0.00   62.490293
       aif_ogl.framework   AdobeAIF   3.0.00   62.490293
       AlignmentLib.framework   xcode   1.0.0.1  
       amtlib.framework   amtlib   6.0.0.75  
       amtlib.framework   amtlib   6.0.0.75  
       boost_date_time.framework   boost_date_time   6.0.0.0  
       boost_signals.framework   boost_signals   6.0.0.0  
       boost_system.framework   boost_system   6.0.0.0  
       boost_threads.framework   boost_threads   6.0.0.0  
       Cg.framework   NVIDIA Cg     
       CIT.framework   CIT   2.0.5.19287   145486
       data_flow.framework   AdobeAIF   3.0.00   62.490293
       dvaaudiodevice.framework   dvaaudiodevice   6.0.0.0  
       dvacore.framework   dvacore   6.0.0.0  
       dvamarshal.framework   dvamarshal   6.0.0.0  
       dvamediatypes.framework   dvamediatypes   6.0.0.0  
       dvaplayer.framework   dvaplayer   6.0.0.0  
       dvatransport.framework   dvatransport   6.0.0.0  
       dvaunittesting.framework   dvaunittesting   6.0.0.0  
       dynamiclink.framework   dynamiclink   6.0.0.0  
       FileInfo.framework   FileInfo   66.145433   66.145433
       filter_graph.framework   AdobeAIF   3.0.00   62.490293
       hydra_filters.framework   AdobeAIF   3.0.00   62.490293
       ICUConverter.framework   ICUConverter   3.61   "gtlib_3.0" "." "16615"
       ICUData.framework   ICUData   3.61   "gtlib_3.0" "." "16615"
       image_compiler.framework   AdobeAIF   3.0.00   62.490293
       image_flow.framework   AdobeAIF   3.0.00   62.490293
       image_runtime.framework   AdobeAIF   3.0.00   62.490293
       LogSession.framework   LogSession   2.1.2.1652  
       mediacoreif.framework   mediacoreif   6.0.0.0  
       PlugPlug.framework   PlugPlug   3.0.0.383  
       UpdaterNotifications.framework   UpdaterNotifications   6.0.0.24   "6.0.0.24"
       wrservices.framework        
    Required plug-ins:
       Accented Edges 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Adaptive Wide Angle 13.0, Copyright © 2012 Adobe Systems Incorporated - from the file “Adaptive Wide Angle.plugin”
       ADM 3.10x16, Copyright © 1987-2008 Adobe Systems Inc.  All rights reserved. - from the file “AdobeADM.bundle”
       Angled Strokes 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Average 13.0 20120315.r.428 2012/03/15:21:00:00  ©1993-2012 Adobe Systems Incorporated - from the file “Average.plugin”
       Bas Relief 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       BMP 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Camera Raw 7.0 (308), Copyright © 2012 Adobe Systems Incorporated - from the file “Camera Raw.plugin”
       Chalk & Charcoal 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Charcoal 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Chrome 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Cineon 13.0 20120315.r.428 2012/03/15:21:00:00  ©2002-2012 Adobe Systems Incorporated - from the file “Cineon.plugin”
       Clouds 13.0 20120315.r.428 2012/03/15:21:00:00  ©1993-2012 Adobe Systems Incorporated - from the file “Clouds.plugin”
       Collada DAE 13.0 20120315.r.428 2012/03/15:21:00:00  ©2006-2012 Adobe Systems Incorporated - from the file “U3D.plugin”
       Color Halftone 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Colored Pencil 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       CompuServe GIF 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Conté Crayon 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Craquelure 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Crop and Straighten Photos 13.0 20120315.r.428 2012/03/15:21:00:00  ©2003-2012 Adobe Systems Incorporated - from the file “CropPhotosAuto.plugin”
       Crop and Straighten Photos Filter 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Crosshatch 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Crystallize 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Cutout 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Dark Strokes 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       De-Interlace 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Difference Clouds 13.0 20120315.r.428 2012/03/15:21:00:00  ©1993-2012 Adobe Systems Incorporated - from the file “Clouds.plugin”
       Diffuse Glow 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Displace 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Dry Brush 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Eazel Acquire 13.0 20120315.r.428 2012/03/15:21:00:00  ©1997-2012 Adobe Systems Incorporated - from the file “EazelAcquire.plugin”
       Embed Watermark NO VERSION - from the file “DigiSign.plugin”
       Enable Async I/O 13.0 20120315.r.428 2012/03/15:21:00:00  © 2004-2012 Adobe Systems Incorporated - from the file “Enable Async IO.plugin”
       Extrude 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       FastCore Routines 13.0 20120315.r.428 2012/03/15:21:00:00  ©1990-2012 Adobe Systems Incorporated - from the file “FastCore.plugin”
       Fibers 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Film Grain 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Filter Gallery 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Fresco 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Glass 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Glowing Edges 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Grain 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Graphic Pen 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Halftone Pattern 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       HDRMergeUI 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “HDRMergeUI.plugin”
       IFF Format 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Ink Outlines 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       JPEG 2000 13.0 20120315.r.428 2012/03/15:21:00:00  ©2001-2012 Adobe Systems Incorporated - from the file “JPEG2000.plugin”
       Lens Blur 13.0, Copyright © 2002-2012 Adobe Systems Incorporated - from the file “Lens Blur.plugin”
       Lens Correction 13.0, Copyright © 2002-2012 Adobe Systems Incorporated - from the file “Lens Correct.plugin”
       Lens Flare 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Liquify 13.0, Copyright © 2001-2012 Adobe Systems Incorporated - from the file “Liquify.plugin”
       Matlab Operation 13.0 20120315.r.428 2012/03/15:21:00:00  ©1993-2012 Adobe Systems Incorporated - from the file “ChannelPort.plugin”
       Measurement Core 13.0 20120315.r.428 2012/03/15:21:00:00  ©1993-2012 Adobe Systems Incorporated - from the file “MeasurementCore.plugin”
       Mezzotint 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       MMXCore Routines 13.0 20120315.r.428 2012/03/15:21:00:00  ©1990-2012 Adobe Systems Incorporated - from the file “MMXCore.plugin”
       Mosaic Tiles 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Multiprocessor Support 13.0 20120315.r.428 2012/03/15:21:00:00  ©1990-2012 Adobe Systems Incorporated - from the file “MultiProcessor Support.plugin”
       Neon Glow 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Note Paper 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       NTSC Colors 13.0 20120315.r.428 2012/03/15:21:00:00  ©1993-2012 Adobe Systems Incorporated - from the file “NTSC Colors.plugin”
       Ocean Ripple 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Oil Paint 13.0, Copyright © 2011 Adobe Systems Incorporated - from the file “Oil Paint.plugin”
       OpenEXR 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Paint Daubs 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Palette Knife 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Patchwork 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Paths to Illustrator 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       PCX 13.0 20120315.r.428 2012/03/15:21:00:00  ©1989-2012 Adobe Systems Incorporated - from the file “PCX.plugin”
       Photocopy 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Photoshop 3D Engine 13.0 20120315.r.428 2012/03/15:21:00:00  ©2006-2012 Adobe Systems Incorporated - from the file “Photoshop3DEngine.plugin”
       Picture Package Filter 13.0 20120315.r.428 2012/03/15:21:00:00  ©1993-2012 Adobe Systems Incorporated - from the file “ChannelPort.plugin”
       Pinch 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Pixar 13.0 20120315.r.428 2012/03/15:21:00:00  ©1989-2012 Adobe Systems Incorporated - from the file “Pixar.plugin”
       Plaster 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Plastic Wrap 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       PNG 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Pointillize 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Polar Coordinates 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Portable Bit Map 13.0 20120315.r.428 2012/03/15:21:00:00  ©1989-2012 Adobe Systems Incorporated - from the file “PBM.plugin”
       Poster Edges 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Radial Blur 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Radiance 13.0 20120315.r.428 2012/03/15:21:00:00  ©2003-2012 Adobe Systems Incorporated - from the file “Radiance.plugin”
       Read Watermark NO VERSION - from the file “DigiRead.plugin”
       Reticulation 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Ripple 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Rough Pastels 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Save for Web 13.0, Copyright © 1999-2012 Adobe Systems Incorporated - from the file “Save for Web.plugin”
       ScriptingSupport 13.0, Copyright © 2012 Adobe Systems Incorporated - from the file “ScriptingSupport.plugin”
       Shear 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Smart Blur 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Smudge Stick 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Solarize 13.0 20120315.r.428 2012/03/15:21:00:00  ©1993-2012 Adobe Systems Incorporated - from the file “Solarize.plugin”
       Spatter 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Spherize 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Sponge 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Sprayed Strokes 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Stained Glass 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Stamp 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Sumi-e 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Targa 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Texturizer 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Tiles 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Torn Edges 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Twirl 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Underpainting 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Vanishing Point 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “VanishingPoint.plugin”
       Water Paper 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Watercolor 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
       Wave 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Wind 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
       Wireless Bitmap 13.0 20120315.r.428 2012/03/15:21:00:00  ©1989-2012 Adobe Systems Incorporated - from the file “WBMP.plugin”
       ZigZag 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
    Optional and third party plug-ins: NONE
    Plug-ins that failed to load: NONE
    Flash:
       Mini Bridge
       Kuler
    Installed TWAIN devices: NONE
    -------------------------------------END OF SYSTEM INFO-----------------------------------
    LIke I said, I sure hope somebody can help me out.   Any suggestions would be appreciated.   The only thing I could think that might be causing this is the fact that I upgraded to Maverick (Apple OSX) about 2.5 weeks ago.  But this problem didn't start until about 3 days ago, so surely that's not the issue.  Anyway, figured it was worth mentioning.
    Please let me know.
    Thank you,
    Jamie Richards, a fellow Photoshop addict

    I found the solution (took forever to consolidate all the answers) for OS X 10.9 + Maverick. Finally!
    1. Change permissions (as AOTPR says) to your User/Library/Preferences file so that your admin and user (the one you are using) has read + write permissions within the Get Info pane (command+I). You may have to add them with the sign.
    2. Delete Adobe save for web 12.0 Prefs & Adobe save for web 13.0 Prefs files within the User/ Library/ Preferences folder. These may be hidden for some people, so when in a finder window, hold Option(alt) and click Go from the main top menu (keep holding Option/Alt) and click Library — the full Preferences folder should open for you.
    3. Change the view when in Save for web pane in PS. If you have it in Cover Flow — it won't work. Change it to another view like List or Columns view.
    Presto! Works for me on Maverick.
    Thank god. It took forever to get this cleared up!!
    If you have any questions, email me [email protected]

  • How can i set a global error page for all error cod

    how can i set a global error page for all error code?
    i don't want to leave a long list in the web.xml file.could any one help me?
    thanks

    If u have a common Error JSP named as ErrorPage.jsp
    You need to have the following piece of code in the JSP as :
    <%@ page isErrorPage ="true"%>
    This makes it as the Common Error Page for the Application. Now all you need to do is from other JSP's throw the Exception to teh container. The container will redirect to this Page and process accordingly.
    Thanks and regards,
    Pazhanikanthan. P

  • Error encountered while signing. Windows cryptographic service provider reported an error. Object not found. Error code:2148073489. Windows 7, Adobe Reader XI, Symantec PKI, Smart Card and CAC. I have seen other threads for this error but none have a reso

    Error encountered while signing. Windows cryptographic service provider reported an error. Object not found. Error code:2148073489. Windows 7, Adobe Reader XI, Symantec PKI, Smart Card and CAC. I have seen other threads for this error but none have a resolution. Any help would be appreciated.
    Sorry for the long title, first time poster here.

    This thread is pretty old, are you still having this issue?

  • [svn:osmf:] 11848: Added check for argument error DRM subsystem throws while generating a DRMContentInfo Object .

    Revision: 11848
    Revision: 11848
    Author:   [email protected]
    Date:     2009-11-16 10:00:48 -0800 (Mon, 16 Nov 2009)
    Log Message:
    Added check for argument error DRM subsystem throws while generating a DRMContentInfo Object.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/osmf/drm/DRMServices.as

    Well, I can tell you that this kind of error is not OS related, but rather a HW thing.  It happens where there is a general detection of something going wrong.  Sometimes it can happen randomly and might not be an indication of a problem.  But sometimes it can be caused by things that are improperly functioning within the system like bad capacitors. 
    Unfortunately I don't really know what to do about such things except give you machine a proper inspection.  But if things are working fine, and continue to do so, I wouldn't worry about it.  If it becomes a regular occurance, then I'd worry.

  • I receive the following error message when trying to install QuickTime for Windows "Error writing to file C:/Program Files/QuickTime/QTSystems/QuickTimeCheck.ocx. Verify that you have access to that directory."

    I recieve the following error message when trying to install Quicktime for Windows "Error writing to file C:/Program Files/QuickTime/QTSystems/QuickTimeCheck.ocx. Verify that you have access to that directory."  I just trying to get the latest version of iTunes.  Thanks

    "Error writing to file C:/Program Files/QuickTime/QTSystems/QuickTimeCheck.ocx. Verify that you have access to that directory."
    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • I keep getting the following error message while sharing my iMovie to iDVD.  "Unable to prepare project for publishing"  error (-2125).

    I keep getting the following error message while sharing my iMovie to iDVD.  "Unable to prepare project for publishing"  error (-2125).  I'm running iMovie 09 v. 8.0.6 on a iMac with OSX v 10.6.8, 2Ghz core duo, 1GB 667 Mhz DDR2 SDRAM.  Any ideas why?

    That particular error comes up for a number of reasons, sometimes it's the size of the movie you're trying to export. Bengt Wärleby a longtime contributor to the iMovie Discussion Group has advised a number of people on this error code, so I am going to link to his latest advice he's given to anyone trying to export to DVD from iMovie: Bengt's tips for great DVDs.
    Specifically, try bypassing Share to iDVD by using Share to Media Browser instead.
    In the Share to Media Browser dialog box choose the Large Size.
    When(If?) it gets through that process, quit iMovie altogehter then go to iDVD.
    Create a new project and click on the Media button near the lower right hand side of the Project Window.
    Then click the Movies button in the Browser window just above that.
    Under the iMovie star icon you should see the name of the project you shared out from iMovie.
    Drag that into the project and burn the DVD.
    If it's still to large or you get the same -2125 error code trying to Share using the Medium size instead. But again if you really get stuck consult Bengt Warleby's User tips:
    Bengt's tips for great DVDs

  • IMovie '09 "Unable to Prepare Project for Publishing" error (-2009)

    Please help ! I have just created a small movie in iMovie '09 from imported clips from Sony Handycam with miniDV tapes. All clips imported easily and can be viewed and edited. Though when I try to share the project to iTunes or even export it to my desktop I get the message "Unable to prepare the project for publishing" error (-2009).
    I have been searching the forum and the web for an answer or quick fix and I see none, though i do see that many people are having this same issue. I already have all permission set to read & write on all the appropriate folders. I don't know what else to do.....I was hoping to have this project done for a Christmas present for my wife.
    Please help .... ! ! !

    I think I know what was the problem in my case. My project-file wasn´t very large, but I imported all my movies in one single event. After splitting the movies up into different events, I was able to export my project....

  • Help Needed: Automator Applescript for Folder Action - Encode Video

    Hi !
    I have created an Automator Applescript for a Folder Action to do the following:
    When a new video file is moved to the target folder (i.e. Download of Vuze is done), automatically launch the Applescript Action that does the followin g(Applescripted):
    1) Using "run shell script" and FFMPEG on a UNIX command line, determine Width/Height, Framerate, Bitrate
    2) Calculate encoding parameters (slightly reduced bitrate, reduced Aspect etc.)
    3) Using "run shell script" with ffmpeg on the command line and the calculated parameters to encode the video file
    At the same time, the action is written to a log file so I know if a file is recognized, when encoding started etc.
    It works fine if I save this Action as an .app, make an alias on the Desktop and drop video files on it.
    It also works fine if I attach the script to a folder as a folder action and drag a video file in there.
    However, when I attach the script as a folder action to the Vuze download folder, it encodes only some video files, i.e. if there was a download of 5 files, chances are good that it will not encode 1 or 2 files out of those 5.
    If for example a second download finishes while the encoding for the first download is still going on, sometimes the second file starts encoding after the first encode finishes, sometimes it does not, the file does not make the log file at all, i.e. the folder action missed it or the automator action dropped it because it was still encoding. Still, sometimes it happens, sometimes not.
    As I need a solution that is 100% accurate, I would like to ask if there are any ideas on how to do this better maybe? As I am not an Applescript Guru, I would need some help to know what works and what doesn't and what the syntax is.
    My main idea right now:
    Similar to how ffmpegX works with its "process" application, have a second script (as .app) that receives the files to be encoded from the automator action and puts them in a queue, then proceeds to encode this queue while the main automator action is free to receive the next file.
    Writing this second app is quite straightforward (a modified version of my current script) but I have some questions I need help with:
    1) How do I call another applescript from within an existing applescript that launches the new applescript in a new process?
    2) How do I pass parameters to this new applescript?
    3) In case of this "Queueing" Idea, once I called the external applescript the first time, how do I make sure when I call next time, that I don't open a second instance of this script but rather pass another queue item to the original instance to be processed?
    Or in general: Is there a better way to achieve this automatic encoding solution that I have not thought about?
    Alternatively:
    Does anyone know how to call the "process" application that comes with the ffmpegX package with the correct parameters to use as a queueing / processing tool?
    Thanks!
    Joe
    Message was edited by: Joe15000
    Message was edited by: Joe15000

    To do this, I created an Automator workflow with an Applescript snippet to change the 'media kind'.
    Here is the 'Run Applescript' workflow step code:
    on run {input, parameters}
              tell application "iTunes"
                        set video kind of (item 1 of input) to movie
              end tell
              return input
    end run
    Prior to this running, I have an 'Import Files into iTunes' workflow step.
    You can switch out 'movie' with: 'TV show', 'music video', or anything in ITLibMediaItemMediaKind.
    Good luck,
    Glenn

Maybe you are looking for

  • How can I slide detached audio left/right in sample increments, rather than frame increments?

    I exported a detached audio file from FCP X to Pro Tools for processing, and I have now imported the processed audio file back into FCP X. I need to align the processed audio clip with the original audio clip. I am using View --> Zoom to Samples, and

  • Invalid Path Showing Up

    I am converting 8.5 reports to 11.5.  When I try to run the new report it is asking me for a username and password to an old path.  The old path is listed and if I delete the path, then I can view my report. I have looked in the set datasource locati

  • Oo abap to get the fldcat in class

    HI friends, i have to know is their any class available to generate field catalog as like reuse_alv_fieldcataloge_merge in alv.

  • Access db upload to SAP internal table table

    Dear friends.   i am supposed to develop a program that upload the MS-Access DB table to SAP internal table. I have received the code wich is ok...but i am failed to provide it porper input as i am not receiving n e values in internall tables. please

  • How can I find out which table/tables are behind a view?

    I tried following with scott/tiger: SQL> select text from all_views where view_name = 'TAB'; TEXT select o.name, decode(o.type#, 2, 'TABLE', 3, 'CLUSTER', 4, The text after "4," is not displayed in SQL*Plus-Editor. The attribut TEXT with datatype lon