Javascript that worked in CS4 not working in CC

I wrote a Javascript tool that creates perspective grids in Photoshop a while ago.  It works fine in Photoshop CS4.  However, I've been getting a few emails complaining that it does not work in CC.  I've checked the CC release of the Javascript in Photoshop reference guide, but it appears that nothing has changed relevant to my code since CS4.  Any idea what's happening in PS that is causing this script to fail?
http://kitfox.com/projects/photoshopPersp/Perspective%20Grids.jsx
Full webpage:
http://kitfox.com/projects/photoshopPersp/index.html

I've changed the script.  I now create my path layer using the below function.  However, even after explicitly changing the ruler units to PIXELS, the paths I create all seem to be measured in POINTS.  Even if the original ruler unit is PIXELS this still happens.  Is there any way around this (that is backwards compatable)?
function createPathLayer(title, subPathArray)
    var docRef = app.activeDocument;
    var originalUnit = app.preferences.rulerUnits;
    alert("Orig units " + originalUnit);
    app.preferences.rulerUnits = Units.PIXELS;
    var myPathItem = docRef.pathItems.add(title, subPathArray);
    alert("New units " + Units.PIXELS);
    app.preferences.rulerUnits = originalUnit;

Similar Messages

  • Script that worked in CS does not work in CS4 - multiple open page, print , pdf export and close

    I had a script that worked great for me in Indesign CS. But now does not work in CS4. Anyone knows what needs to be done to make it work again ?
    When I drop folder with indesign files on top of this script:
    1. opens first page
    2. turns specific layer on
    3. prints using preset
    4. exports using preset
    5. close without saving
    6. next page
    Anyone who can give me solution or idea how this should work is greatly appreciated.
    on open sourceFolders
    repeat with sourceFolder in sourceFolders
    tell application "Finder"
    try
    -- If you would like to include subfolders, you say - every file of entire contents of folder…
    set idFiles to (every file of folder sourceFolder whose file type is "IDd5") as alias list
    on error -- work around bug if there is only one file
    set idFiles to (every file of folder sourceFolder whose file type is "IDd5") as alias as list
    end try
    end tell
    if idFiles is not {} then
    tell application "Adobe InDesign CS4"
    set user interaction level to never interact
    repeat with i from 1 to count of idFiles
    open item i of idFiles
    tell document 1
    try
    set visible of layer "ImagesTag_Layer" to true
    end try
    set myPreset to "letter size" -- name of print style to use
    with timeout of 700 seconds
    print using myPreset without print dialog
    end timeout
    set myPreset1 to "pdf preset name" -- name of pdf export style to use
    set myName to the name -- name includes .indd should remove at some point          
    with timeout of 700 seconds
    export format PDF type to "users:temp:Desktop:pdf:" & myName & ".pdf" using myPreset1 without showing options -- set path here format ComputerName:Folder1:Folder2:......:FileName.pdf
    end timeout
    close without saving
    end tell
    end repeat
    set user interaction level to interact with all
    end tell
    end if
    return 10 -- try again in 10 seconds
    end repeat
    end open

    (Disclaimer: me not an AS guy!)
    First thing I noticed is the interaction level is set off. If you comment out this line
    set user interaction level to never interact
    you might be able to pinpoint the exact error -- ID will display a standard "failed" dialog, hopefully showing the line that it fails on.
    A quick question: the script assumes two presets in your InDesign: one for print ("letter size") and one for PDFs ("pdf preset name"):
    set myPreset to "letter size" -- name of print style to use
    set myPreset1 to "pdf preset name" -- name of pdf export style to use 
    Do these actually exist in your CS4, with the same (non)capitalization and spaces?

  • Javascript that ran in 2.0 no longer works in 2.1

    There is some javascript that ran in safari 2.0 (412) that no longers works in 2.1 (419.3). Essentially, it should be a text field that has all of the text inside selected. Below is a simple code example (note: this javascript was generated with VBScript in .ASP):
    1. Create the textbox
    <textarea id="textbox"></textarea>
    2. At the end of the page, set the value of the textbox - it also concatenates
    <script language="javascript">
    document.myForm.textbox.value = "hello my name is ";
    document.myForm.textbox.value = document.myForm.textbox.value + " fred";
    3. set focus to the textbox
    document.myForm.textbox.value.focus();
    4. select all in the textbox
    document.myForm.textbox.value.select();
    </script>
    It works in IE6 on windows, in Firefox in windows and osx, and it used to work in safari before I upgraded.

    P.S. I just went and opened the project in my old, 7.0 version, and titles were there. Assuming that if they had needed relinking, I wouldn't have had a problem.

  • Hyperlink that contains backslash is not working in Acrobat Reader 8 and 9

    Hi,
    Does anyone know why a hyperlink that contains backslash is not working in Acrobat reader 8 and 9?
    I created a document in Indesign CS and it contains hyperlinks that open up files from network drive so they contain backslash (for example: c:\foder\forder\filename.jpg). All the hyperlinks work in Acrobat Reader 6 but not in Acrobat Reader 8 or 9.
    Anybody could share the solution would be very much appreciated. Thanks!

    Did you ever figure this out? I am also having problems with the "No Hand" javascript which turns off the (not very helpful) page-forward hand icon (a hand symbol with a down arrow) which confuses our users when in fullscreen mode. We create interactive PDFs and everything worked fine up to Acrobat X/Reader X. Now in XI it doesn't allow the internal link icon (pointing finger) nor weblink icon (pointing finger with W) to appear. It just remains a plain o’ hand icon no matter what you mouse over even though there are links present.

  • Acrobat 9 does not recognize the smart card reader that work with other app. Can someone help me?

    Hi to All,
    Acrobat 9 (included in CS4 design premium) does not recognize the smart card reader. I have a smart card reader ACR38 smart card that works with all applications except Acrobat 9 pro. I tried to uninstall and reinstall it again, but when I try to insert the digital signature message is always the same, that does not find the Acrobat reader. Can someone help me?

    Hi MartinR
    Thank you for your reply, i have tried what you suggest, and it did not work, the i DVD opening title changed but not the embedded movie.
    Perhaps it is a setting in Final Cut Express?
    After capturing my footage, i open a new project then i convert all clips to anamorphic, to give me the letterbox effect, i have tried now with and without anamorphic.
    In my canvas screen, the footage does not fill the square, even if i have not selected anamorphic, and fall well within the TV safe areas, but the only way to ill the canvas up is to crop it bigger, but still when i export it does not give me the full screen view.
    Any ideas?

  • Dreamweaver CS4 not working under MacOS 10.9

    on starting DW CS4 it asks for Java Runtime engine 6, but Mavericks has Java v.7 installed. Since Java 6 was part of the OS of previous systems, I cannot install it seperately, besides it would probably cause conflicts with OS 10.9. Do I have to trash my DW, or is there a workaround.
    Thanx

    If I follow click the instal button on
    I get the progress bar for about 1 sec and then the message about a supposed
    network problem
    which is unreal, since my network works perfectly for any other task and I
    had even tried disabling the firewall and little snitch. Things are still
    not working
    Von:  Jon Fritz II <[email protected]>
    Antworten an:  <[email protected]>
    Datum:  Montag, 25. November 2013 18:34
    An:  RoWo <[email protected]>
    Betreff:  Dreamweaver CS4 not working under
    MacOS 10.9
    Re: Dreamweaver CS4 not working under MacOS 10.9
    created by Jon Fritz II <http://forums.adobe.com/people/JonFritzII>  in
    Dreamweaver support forum - View the full discussion
    <http://forums.adobe.com/message/5872889#5872889>
    This has been discussed a lot here, you need to install Java 6.
    http://helpx.adobe.com/dreamweaver/kb/dreamweaver-java-se-6-runtime.ht ml
    <http://helpx.adobe.com/dreamweaver/kb/dreamweaver-java-se-6-runtime.html>
    Please note that the Adobe Forums do not accept email attachments. If you
    want to embed a screen image in your message please visit the thread in the
    forum to embed the image at http://forums.adobe.com/message/5872889#5872889
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either reply
    to this email or visit the message page:
    http://forums.adobe.com/message/5872889#5872889 To unsubscribe from this
    thread, please visit the message page at
    http://forums.adobe.com/message/5872889#5872889. In the Actions box on the
    right, click the Stop Email Notifications link.  Start a new discussion in
    Dreamweaver support forum at Adobe Community
    <http://forums.adobe.com/choose-container!input.jspa?contentType=1&container
    Type=14&container=2240>  For more information about maintaining your forum
    email notifications please go to
    http://forums.adobe.com/thread/416458?tstart=0.

  • Javascript games that work in IE don't work in Firefox - why?

    Why can't I get javascript games that work in IE to work in Firefox? The javascript games show up on the page but not in the correct format and the scripts don't work. An example is here: http://www.cornwallfoodandfarming.net/games/KS1-summer-in-farm3/picture-memory.htm
    When you open it in IE you can see what it should do!
    Any help gratefully received. Cheers...Paul

    That particular game was created a long time ago... in the age of Netscape version 4.
    Netscape version 4 had proprietary objects named layers that are no longer supported in Firefox, so the game fails because it assumes that Firefox supports layers. You can see this if you open Tools > Error Console and scroll to the end of the long list after clicking the link to start the game.
    If you think the developers of this site might be willing to update the game, let them know about this problem.
    If not, and the game is very important to you, you could try Chris Pederick's User Agent Switcher extension (Tools > Add-ons > Get Add-ons) to make Firefox temporarily masquerade as an old version of Internet Explorer. There's no guarantee that will make the game work in Firefox, but it has a better chance than what you get now.

  • Javascript functions to control QuickTime not working in Firefox

    I am using the provided Javascript functions to control QuickTime (7.6.2); however, the functions are not working in Firefox (3.0.11), whereas they are working in Safari (4.0.1).
    I create a QuickTime Player, as follows:
    QT_WriteOBJECT('Music.mp3', '0', '0', '', 'AUTOPLAY', 'True', 'KIOSKMODE', 'True', 'CONTROLLER', 'False', 'LOOP', 'False', 'obj#id', 'qtp', 'emb#name', 'qtp', 'emb#id', 'qtpID', 'ENABLEJAVASCRIPT', 'True', 'SHOWLOGO', 'False', 'VOLUME', '256');
    The Music.mp3 file starts playing in both Safari and Firefox; however, the Javascript functions to control that playing work only in Safari, not in Firefox.
    Examples of QuickTime functions that work in Safari, but not in Firefox:
    document.qtp.Stop();
    document.embeds[0].GetRate();
    document.embeds["qtp"].GetTime();
    document.embeds["qtpID"].GetQuickTimeVersion();
    The GetRate and GetTime functions always return a "0" in Firefox, the Stop command is ineffectual in Firefox, and the GetQuickTimeVersion function aborts the Javascript code in Firefox.
    Any ideas what's happening?

    Dave, what you have done is very similar to what I have done, with the following exceptions:
    1. I'm using the regular HTML version of QT_WriteOBJECT rather than the XHTML version.
    2. My first parameter is an .mp3 file rather than a .mov poster in combination with an 'href'.
    3. I'm not using some of your parameters, such as, 'target', 'targetcache', 'scale', 'href', and 'name'.
    4. Instead of 'name', I'm using --- 'obj#id', 'qtp', 'emb#name', 'qtp' --- which allows me to then reference the QuickTime functions as --- document.qtp.Play(); document.qtp.Stop(); --- etc.
    5. I'm not creating HTML buttons as player controls; rather I am using my javascript program to detect and control the player operation with functions such as --- document.qtp.GetRate(); document.qtp.GetTime(); document.qtp.GetDuration(); document.qtp.SetVolume(); document.qtp.SetMute(); document.qtp.Play(); document.qtp.Rewind(); document.qtp.Stop() --- etc.
    6. I change my .mp3 files using --- document.qtp.SetURL();
    7. All my javascript is contained in an iWeb HTML snippet using an iframe.
    Essentially, I've created a jukebox with button images of album covers that can be visually scrolled and then clicked to play an album via the HTML onClick, onMouseOver, and onMouseOut functions.
    This all works without a hitch in Safari; however, in FF, NN, and Opera, it only works if the iframe is completely visible on the screen. It can't be scrolled offpage, and the HTML album cover buttons in the iframe cannot be dimensionless, hidden, or blocked from view.
    I really think it's the iframe that is causing this behavior in all the browsers (except Safari).
    BTW, as an aside, I don't have a Windows machine, but no one I know using IE on a PC has been able to get my QuickTime Player working. I think it's because, when I want to collapse an album cover, I set its width to '1px' ('0px' works only in Safari), but I think IE may require a minimum width of '2px'. I have not tried changing my image widths to '2px' yet.

  • PP CS4 not working

    I have Premiere Pro CS4 as part of Creative Suite 4.  Has worked fine for
    a year or so.  Have not used for a couple months and just tried to start a new project.
      I now have two problems.  First when I try to drag clip to the time line,
    the Timeline Panel changes to a very distorted/chopped view and is unusable.  This is the case whether I am working with a new project or if I am working with an old project (that previously worked fine when created a year ago.  See below:
    Also, when I try to exit, the exit screen acts like it can not read the mouse input.  It will only respond to keyboard input such as "Enter" to save, "Esc" to cancel or Control "N" to exit without save.
    I have tried a complete uninstall and reinstall, but no difference.  This is the case both immediately after the reinstall using V4 as well as after doing updates to Version 4.2.1.

    This sounds like a classic video driver issue.
    What make/model video card do you have?
    What is the current video driver number/date?
    I'd go to the mfgr's. Web site, and see if there is a newer driver  for your card and OS. If so, install that, reboot, launch CS4 and test.
    While you are at it, check your audio driver and update that, if appropriate.
    Good luck,
    Hunt
    PS - do not trust Windows to tell you if you have the latest driver. It is usually 6 mos. wrong, and I've read of cases, where the driver, that Windows said was the latest, being 4 years out of date.

  • HT201320 I have a new work email that works fine on my iPhone 5. However the tone and vibration do not work on my phone or iPad for this particular account? It is like it is on silent!! All the features are on for tone / vibration and nothing happens!!!

    I have a web based new work email account from my Company that is working fairly well on my iPhone 5 and my iPad 4. However no matter what I do in the settings every email that comes in to both device comes in silent with no tone or vibration. Both devices are working fine and my other personal accounts are also working fine with Tones and Vibrations. I do not understand what is going on. I am on a loud Construction site all day and I need to have that working well. Can you help me out?

    ps when syncing it jumps through steps 1 - 4 real fast, i seem to remeber iphone showing the number of tracks transferring and names, but i see nothing? then it sits on 5 saying "waiting for changes to be applied"

  • Is it true that keep options is not working with paragraph span? (CS5)

    Hi all,
    Just wanted to confiem that keep options does not work with Paragraph span.
    thanks,
    shlomit

    That's correct for now. Perhaps in CS6....

  • HT1212 I am trying to restore a phone that the screen does not work on, therefore I can't input my password.  How can I bypass this and upload it to itunes?

    I am trying to restore a phone that the screen does not work on, therefore I can't input my password.  How can I bypass this and upload it to itunes?

    You could follow the instructions in the support document that you linked from. There is a section regarding the passcode and the inability to use it or enter it. However, you may encounter more issues since you cannot use the screen.

  • I am trying to move a pdf file onto my iPad2, and it says that the device is not connected or has stopped working.  But Windows 7 recognizes the device and I can see my pictures.  Same thing happens when I try to put music onto the iPad.

    I am trying to move a pdf file onto my iPad2, and it says that the device is not connected or has stopped working.  But Windows 7 recognizes the device and I can see my pictures.  Same thing happens when I try to put music onto the iPad.

    When in iTunes on the computer,my our ipadmshould show under devices.
    Click on your ipadmunder devices then go to music at top center of the iTunes window, check what you want to sync for music. You need to set it to a folder if I remember which would have your music in it you want synced.
    Same with PDF files.....there should be an option for data or even PDF files at the top center area of iTunes when the iPad is clicked under devices.
    If your iPad does not show or you cannot click on it under devices which is in the leftane of iTunes, the iPad is not being seen by the computer.
    Try unplugging the USB cord from the laptop then give it a few and see if the computer picks it up.

  • I bought the Keynote app for my MacBook, but when I open the application and try to install it, I get an error message saying that the application will not work with my MacBook. What gives? And, can I please request a refund? ($19.99 = a week's groceries)

    I bought the Keynote app for my MacBook, but when I open the application and try to install it, I get an error message saying that the application will not work with my MacBook. What gives? And, can I please request a refund? ($19.99 = a week's groceries).
    Thank you for your help! - I did try looking for all available specs about Keynote on the Apple iTunes website, and found nothing that could help me. HELP!

    1
    Close all iWork applications
    2
    Uninstall Keynote; this must be done with an application remover tool to delete the installation properly. Appcleaner is known to work correctly for this purpose, it is free and can be downloaded from here: Appcleaner Download
    3
    empty the trash
    4
    shutdown the Mac and restart. After the start up chime, hold down the shift key until the apple logo appears
    let the Mac complete the start up procedure completely, it will take longer than usual as the hard drive is being repaired
    5
    Reinstall Keynote by logging into the Mac App Store using download / install

  • I just upgraded to os 10.9.5. When I try to open iPhoto, I am told that the version I have(9.3), is not compatible with the os. But it came with it when I upgraded. What do I have to do to get an iPhoto that works with 10.9.5? TIA

    I just upgraded to os 10.9.5 on my 15 " macbook pro from os 10.7.5. When I try to open iPhoto, I get the message that it is not compatible with the os. How can that be??? It came with the upgrade. It says the version of iPhoto is 9.3. How do I get an iPhoto that works with os 10.9.5? TIA

    This screenshot shows which previous versions of iPhoto are compatible with Mavericks.  It also indicates which versions qualify for a free upgradeto iPhoto 9.5.1 and which require a purchase:
    Note 1:  every day more users are reporting problems with iPhoto 8.1.2 so I've included it in the non compatible category.
    Note 2:  If your previous version of iPhoto was iPhoto 7 (08) or earlier you'll need to download and run the iPhoto Library Upgrader 1.1 application on the library before opening it with iPhoto 9.5.1

Maybe you are looking for