AppleScript to call a Photoshop Script: what am I doing wrong?

Hi All.
I'm using AppleScript to try and call a photoshop Java script stored in my *** project.
The basic set up is:
Tell Application Photoshop CS3
set myscript to POSIX path of ((path to me as Unicode text) & "Contents:Resources:Equipment_ProductSilosthumb.js")
do javascript myscript
end tell
when i try and run the script i get the following error
- Error 25: Expected: ;.
Line: 1
-> /Users/amannone/Production Tools CS3/build/Debug/Production Tools.app/Contents/Resources/Equipment_ProductSilosthumb.js (8800)
If i embed the script in the apple script it will work ok.
ie do javascript "insert js code here"
What am I doing wrong?
Software: Adobe CS3 Extended, Mac OS X 10.5, Xcode 3
Thank for the help.
-andrew

Your description of the issue is not clear:
What format, bit depth and color was your original file "from the net"?  It sounds like it was a Color Indexed GIF, which would cause what you are describing.
In the Macintosh Finder, select said "net image" and do a Get Info on it (Command+i). When the Info box appears in the Finder, take a screen shot and upload it here by using the little camera icon in the Reply Editor in the forum's web interface.
If the image is a 256-color GIF, remember the rule:  GIGO = garbage in, garbage out.

Similar Messages

  • [SOLVED] SSH Log check script, what am i doing wrong?

    wow linux, you never cease to amaze me
    cat /var/log/auth.log | grep -vP "(209\.94\.131.\65|216\.204\.172\.218)" | grep Accepted | awk '{ print $1, $2, $11 }'
    --- the rest is immaterial --
    disclaimer: i am a horrible scripter; i'm just learning; there's probably a better way to do this
    what i'm trying to do: cat through /var/log/auth.log for accepted ssh connections, filter out my home and work ip's, place any filtered ip's in a log file with date.
    i'm having some trouble when checking for inequality between two ip strings (xx.xx.xx.xx).  this script:
    #!/bin/bash
    homeip=`whatismyip`
    workip="216.204.172.218"
    log=${HOME}/Documents/ssh_log
    logip=`cat /var/log/auth.log |
    \grep Accepted.*patrick |
    \awk '{ print $11 }'`
    if [ "$logip" != "$homeip" ]; then
    if [ "$logip" != "$workip" ]; then
    echo -e "$logip \n"
    #cat /var/log/auth.log | grep "$logip" | awk '{ print $1 " " $2 " " $11 }' > $log
    fi
    fi
    echo Home\:\ $homeip
    echo Work\:\ $workip
    exit 0
    outputs this:
    216.204.172.218
    216.204.172.218
    216.204.172.218
    216.204.172.218
    216.204.172.218
    192.168.0.7
    192.168.0.7
    192.168.0.7
    216.204.172.218
    216.204.172.218
    216.204.172.218
    216.204.172.218
    216.204.172.218
    216.204.172.218
    216.204.172.218
    216.204.172.218
    216.204.172.218
    68.37.60.140
    68.37.60.140
    68.37.60.140
    68.37.60.140
    68.37.60.140
    68.37.60.140
    68.37.60.140
    68.37.60.140
    216.204.172.218
    216.204.172.218
    216.204.172.218
    216.204.172.218
    216.204.172.218
    216.204.172.218
    192.168.0.7
    216.204.172.218
    209.94.131.65
    209.94.131.65
    216.204.172.218
    209.94.131.65
    216.204.172.218
    Home: 209.94.131.65
    Work: 216.204.172.218
    i have it just echoing the ip's it finds in the log, then showing which ones _should've_ been filtered out, to debug.
    what gives?
    i'm sure it's trivial, any help would be appreciated.
    Last edited by brisbin33 (2009-01-13 17:10:10)

    pointone,
    yes, you're exactly right, i was thinking one grepped line at a time, not the whole string... that'll require a rewrite
    rson,
    grep -vP and awk should do what i want w/o any scripting required... think i'd learn by now, RTFM right?

  • Help with a script (what am I doing wrong)

    tell application "Finder"
    set theFolder to (choose folder with prompt "choose the user folder") as Unicode text
    set newFolder to make new folder at theFolder as Unicode text with properties {name:"test folder"}
    set targetFolder to newFolder
    move entire contents of (theFolder & "Library:Preferences") to targetFolder
    end tell
    error "Can’t get entire contents of \"Macintosh HD:Users:username:Library:Preferences\"." number -1728 from «class ects» of "Macintosh HD:Users:username:Library:Preferences"
    also I would like the new folder in Library not user folder

    I had some time to give the connected volume stuff another look, so I tweaked the script a little. This latest version will handle getting the users from local or connected volumes as well as connected accounts. I threw in some labels in the choice dialog so you can see what the volumes are, and changed the time stamp a little to avoid using either the POSIX or Finder path delimiters.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    -- remove user preferences to a backup folder
    set theUsers to {}
    repeat with aDisk in (get list disks)
    set aDisk to contents of aDisk
    tell application "System Events"
    if (local volume of disk aDisk) then -- get users from local disks
    if (startup of disk aDisk) then
    set label to "[Startup Volume] "
    else
    set label to "[Local Volume] "
    end if
    repeat with aUser in paragraphs of (do shell script "ls '/Volumes/" & aDisk & "/Users'")
    if aUser is not in {"Shared"} then set the end of theUsers to (label & aDisk & "/Users/" & aUser)
    end repeat
    end if
    try
    if (server of disk aDisk is not missing value) then -- get users from connected disks
    try
    repeat with aUser in paragraphs of (do shell script "ls '/Volumes/" & aDisk & "/Users'")
    if aUser is not in {"Shared"} then set the end of theUsers to ("[Server Volume] " & aDisk & "/Users/" & aUser)
    end repeat
    on error errmess -- get connected user
    log errmess
    set the end of theUsers to ("[Server " & (server of disk aDisk) & "] " & aDisk)
    end try
    end if
    end try
    end tell
    end repeat
    set theChoice to (choose from list theUsers with title "Move preferences to backup" with prompt "Select an account to move user preferences:" with empty selection allowed) as text
    if the result is in {"false", ""} then return -- no selection
    set theChoice to "/Volumes/" & text ((offset of "] " in theChoice) + 2) thru -1 of theChoice -- strip off the volume labels
    set theSource to (theChoice & "/Library/Preferences") as POSIX file as text as alias
    set theDestination to (theChoice & "/Library") as POSIX file as text as alias
    tell ((current date) as «class isot» as string) to set timeStamp to (text 6 thru 7) & "-" & (text 9 thru 10) & "-" & (text 3 thru 4) & space & (text 12 thru 13) & (text 15 thru 16) -- ISO time = yyyy-MM-ddThh:mm:ss
    set theName to "Preferences copy " & timeStamp
    try
    set targetFolder to ((theDestination as text) & theName) as alias
    on error errmess
    log errmess
    tell application "Finder" to make new folder at theDestination with properties {name:theName}
    set targetFolder to the result as alias
    end try
    tell application "Finder" to move items of theSource to targetFolder
    </pre>

  • My iPhone 5 won't ring at all.  Phone calls, texts etc. are all vibration only even though under Sounds everything is correct.  What am I doing wrong?

    My iPhone 5 won't ring .  It only vibrates for calls, texts, etc.  what am I doing wrong?

    Hi, Mylenium,
    Thanks for your prompt reply, I'm afraid it hasn't helped. I don't see anything wrong in my device manager.
    I have also gone and updated every driver, especially the motherboard chipset and the Sata Intel Rapid Storage Technology driver.
    Unfortunately, this hasn't made any difference.
    Any other suggestions?
    Many thanks in advance!
    Hugo

  • Using Photoshop online, when I try to open a file in RAW filter the page opens in bright red and won't allow me to acess the filter.  What am I doing wrong?

    Using Photoshop online, when I try to open a file in RAW filter the page opens in bright red and won't allow me to acess the filter.  What am I doing wrong?

    Photoshoponline has a link you can try which web browser are you using?  If may be your browser or that they do not support your camera's raw format.  I received an error tht states try layer.  You should ask them your question Adobe Photoshop is not the problem its their Web application use their  link Pixlr.com Contact Us

  • Having trouble installing free trial for photoshop through creative cloud....nothing happens...what am i doing wrong??

    Hi, I have dowloaded the creative cloud onto my windows 7 system and I can install most things but when it comes to downloading the trial for photoshop I get nothing!!!!!  What am I doing wrong??? Can someone please help! :-/

    Hi,
    You can try to download creative cloud Desktop.
    https://creative.adobe.com/products/creative-cloud?promoid=KLYVF
    Once it is downloaded try to sign in and then try to download the applications.
    Some useful links:
    Creative Cloud Help | Install, update, or uninstall apps
    Troubleshoot Creative Cloud download and install issues
    Thanks,
    Nikhil Gupta.

  • I am trying to print a color photo on my MacBook Pro from iPhoto (not using Photoshop) using Epson 2200 printer, and everything I do in the Color Matching and Print Settings results in a photo with a pink cast to it. What am I doing wrong?

    I am trying to print a color photo on my MacBook Pro from iPhoto (not using Photoshop) using Epson 2200 printer, and everything I do in the Color Matching and Print Settings results in a photo with a pink cast to it. What am I doing wrong?

    Have you checked the ink cartridges and made sure the nozzles are clear? Are you able to print from outside of iPhoto with the correct color?
    Try the following: make temporary copy of the library and do the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home()/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
         User/Home()/Library/Caches/com.apple.iPhoto folder. 
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    OT

  • In Aperture using the external photo editor Adobe photoshop elements 10 editor.  My photo will not come back to aperture unless the photo is saved on the desktop and then imported back to Aperture. What am I doing wrong?

    Using Adobe Photoshop Elements 10 Editor as external editor in Aperture.  The issue is once i make the changes in Photoshop it request that I save (use tiff) and the photo is not update in Aperture.  What am I doing wrong?

    Marianne,
    how do you save? Photoshop Elements can save either versions or overwrite the original file, afaik.
    You need to set the save preferences, so that it will write to the original file and not write a version. Also the filename extension should be "tiff" and not the default "tif" (I think you did that already).
    Regards
    Léonie

  • I am trying to save a photoshop CS6 psd file to jpg and get an option jpg, jpg2000 or jpg stereo, I choose jpg and then Mac 256 colours, normal or interlaced.  I just want regular jpg with a high resolution.  What am I doing wrong, never had this problem

    I am trying to save a photoshop CS6 psd file to jpg and get an option jpg, jpg2000 or jpg stereo, I choose jpg and then Mac 256 colours, normal or interlaced.  I just want regular jpg with a high resolution.  What am I doing wrong?  , never had this problem before.  Help!!! 

    Your description of the issue is not clear:
    What format, bit depth and color was your original file "from the net"?  It sounds like it was a Color Indexed GIF, which would cause what you are describing.
    In the Macintosh Finder, select said "net image" and do a Get Info on it (Command+i). When the Info box appears in the Finder, take a screen shot and upload it here by using the little camera icon in the Reply Editor in the forum's web interface.
    If the image is a 256-color GIF, remember the rule:  GIGO = garbage in, garbage out.

  • I'm trying to activate my new 4S and I can't make any calls -it says "No Service" What am I doing wrong?

    I followed all the prompts and plugged my new 4S into my desktop, everything has sync'd but I still can't make any calls. It's obviously not connecting to the network. What am i doing wrong?

    Do you have a SIM in the iPhone?

  • Help, i am trying to print my JPEG file that i created in photoshop at a photo lab but it is coming out like an X-ray. I have printed these files before so i have no idea what i am doing wrong.

    Help, i am trying to print my JPEG file that i created in photoshop at a photo lab but it is coming out like an X-ray. I have printed these files before so i have no idea what i am doing wrong.
    Could it be something i have done in my settings?
    or when i am saving the file to JPEG?

    Basically you're approaching this the wrong way around. What you need is the extreme sections to be quieter, not louder. The problem with moving the lower end of the audio is that you'll move the noise floor too, and get what's generally referred to as a 'pumping' effect. So what you do is to use a compressor to tame the peaks, and leave the lower level sound alone. When you've done that, you amplify (or normalize to a level you can determine) the whole signal. So the noise floor will be higher, but constant and not pumping. 'Match Volume' is a completely different tool for setting the overall levels of different tracks so that they sound approximately the same - it doesn't even begin to do what you want.
    If it's music you are treating, then I'd almost certainly use the multiband compressor, because you get less artefacts with this. You need to experiment with the threshold levels, and almost certainly not use a massive compression ratio - 3:1 or 4:1 should be sufficient (although it's hard to tell without actually hearing the audio). You can tell what it's doing at any given point because the downward meter indicates how hard it's working. In theory you can apply make-up gain with it as well, but personally I leave that until everything's treated and use the 'Normalize' tool to set an absolute max level.

  • I can't facetime with anyone, it starts the call and ends it immediately on its own. Any suggestions on what I am doing wrong?

    I can't facetime with anyone, it starts the call but ends it immediately on its own. Any suggestions on what I am doing wrong?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of this test is to determine whether the problem is localized to your user account. Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in OS X 10.7 or later, then you can’t enable the Guest account. The "Guest User" login created by "Find My Mac" is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.

  • I have iPad air, screen freezes after FaceTime call and cannot get back to home screen, have to power down and turn back on to get back to home screen.  What am I doing wrong?

    I have iPad air, screen freezes after FaceTime call and cannot get back to home screen, have to power down and turn back on to get back to home screen.  What am I doing wrong?

    Hi RWD2,
    Welcome to the Support Communities!
    To resolve your issue with Facetime freezing when you end a call, I would try the first three steps in the article below. 
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/ts3281
    Resolution
    If a single application is not responding or stops responding when it opens, you can force it to close.
    If the device is unresponsive or if certain controls aren't working as expected, restart your device.
    If the device remains unresponsive or does not turn on (or power on), reset your device.
    If you are using Wi-Fi, it may be helpful to try these troubleshooting steps as well:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/TS1398?viewlocale=en_US
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings.
    Note: This will reset all network settings including previously connected Wi-Fi networks and passwords
    iOS and OS X: Recommended settings for Wi-Fi routers and access points
    http://support.apple.com/kb/HT4199
    I hope this information helps ....
    Have a great day!
    - Judy

  • My new android keeps crashing got this one because the other one kept crashing. Don't know what I'm doing wrong new phone won't take calls but old phone answers

    Old and new android are paired somehow the old phone answering calls and TeX but new phone is the active one both phones keep crashing what am I doing wrong.Done multiple factory resets on old phone trying to fix this spent countless hours and days on this

    Sorry but we are unable to provide specific help with the Android operating system. Talking to your mobile provider in person may be helpful.

  • I am trying to use siri. It was working earlier. Now when I ask it to call name and number it say, Siri keeps saying( SORRY SOMETHINGS GONE WRONG CAN YOU TRY AGAIN) I HAVE TRIED SEVERAL NAMES AND NUMBERS IN MY CONTACTS.   What am I doing wrong or how can

    I am trying to use siri, Siri keeps saying( SORRY SOMETHINGS GONE WRONG CAN YOU TRY AGAIN)
    I HAVE TRIED SEVERAL NAMES AND NUMBERS IN MY CONTACTS.
    What am I doing wrong or how can I correct it.

    Siri Fix
    Turn OFF Siri
    Reset Network Settings
    Turn ON Siri
    Done
    Steps:
    Tap Settings App>General>Siri>Turn OFF
    General>Reset, near bottom>Reset Network Settings
    Tap Settings App>General>Siri>Turn ON
    Done

Maybe you are looking for

  • Crystal 2008 - How to use the total revenue in a formula

    Hi, Experts, With Crystal report 2008, I created Income Statement in the following steps: 1. select the Journal Entries within a date range 2. group accounts by their father accounts 3. summarize father accounts under Revenue and Expense ( then I got

  • How to change the tab order in adf forms.

    Hi, I design a from in adf jsff page.In the form i have 4 components. These components are surrounded with a panel form layout. Now if i put number of columns as 2 in the property inspector of the PFL. Components appear as 2 fields in the first row a

  • DynamicConfiguration to Message Header

    Hello XI SDN'ers, Does any one tried of reading or writing parameters to Header fields from Dynamic Configuration? If so, please advise me How to read and write the parameters. Note: I am interested in parameters like SOAPAction, Cookie Thanks & Rega

  • Why won't quicktimes and mpegs import into iTunes?

    I'm trying to make a playlist of videos in iTunes. Several of my movies won't import when I drag and drop them. Some were created in Final Cut Pro 7 as basic MOV. One is an MPEG I received frome someone. Why won't they import? thanks Scott

  • How Boot to USB? (To Install New OS)

    How can I install a new copy of Ubuntu on a T400? The existing OS got corrupt.   I got the clean OS on a USB drive.  I set all USB drives to boot first in the boot order setup. The computer keeps booting to the corrupt OS on the hard drive.