JS CS4 & CS5 working through the ScriptListener

Working through the guide there is an example:
var eventFile = new File(app.path + "/Presets/Scripts/Event Scripts Only/Welcome.jsx")
app.notifiers.add( "Opn ", eventFile)
There is 2 possible places to save this file in windows:
C:\Program Files\Adobe\Adobe Photoshop CS5\Presets\Scripts
or
C:\Program Files\Adobe\Adobe Photoshop CS5\Presets\Scripts\Event Scripts Only
I've tried both and when I open a file in Photoshop I do not get the alert.
If I go into the Script Event Manager and set the above code to run on Open Document event it works.
Is there a way to get this example to work without setting it up in the Script Event Mananger?
Cheers.

My experence is that you only need to set app.notifiers.enabled to true if it is not already set. It can be set to true by a script or the Scripts Events Manager.
If you register an event using app.notifiers.add in ESTK the event does not run the script unless Photoshop is restarted. If it is added as part of a script run in Photoshop or the Script Events Manager it runs without restart.
As X pointed out the scirpt can be anywhere, it doesn't have to be in one of those two locations. But for me events registered with the API remain registered from session to session untill removed.
Here is a save way to register an event. Note that it only sets app.notifiers.enabled to true if it is false and registers the open event only if there is not already one.
if(!app.notifiers.enabled) app.notifiers.enabled =  true;
var hasOpenEvent = false;
for(var e = 0;e<app.notifiers.length;e++){// the only way to tell which events are in use is to loop notifiers
     if(app.notifiers[0].event == 'Opn ') hasOpenEvent = true;
if(!hasOpenEvent) {
     var eventFile = new File(app.path + "/Presets/Scripts/Event Scripts Only/Welcome.jsx");
     app.notifiers.add( "Opn ", eventFile);
And as I understand it
new File(app.path + "/Presets/Scripts/Event Scripts Only/Welcome.jsx");
will only work with English versions of Photoshop.

Similar Messages

  • I am using an I phone 5 in Germany and trying to get text messaging to work through the hands free Bluetooth connection on a Honda CRV. It keeps telling me that text messaging is not a feature of my phone. messages come in on the phone.How to resolve ?

    I am using an I phone 5 in Germany and trying to get text messaging to work through the hands free Bluetooth connection on a Honda CRV. It keeps telling me that text messaging is not a feature of my phone. messages come in on the phone.How to resolve ?

    mono 8 bit 8k is 64kbps, yes. 8 bits times 8,000 = 64,000 = 64k bits/sec.
    And yes I think that's a typo - there's no such thing as 'Mone' that I've ever heard of...
    But you might want to check to find out if this is a mu-law non-linear format, possibly - there are several ways that 8 bit 8k wav files can be encoded, and typically phone systems don't use linear ones. If you have a log-in to Zultys' user-base system they have an FAQ there, I believe - the answer might be in that, and it won't cost $500.

  • Where can I locate the "Helena Beat" demo in Logic in order to continue working through the tutorial?

    Where can I locate the "Helena Beat" demo in Logic in order to continue working through the tutorial?

    With Logic Pro open, go to the help menu and select "Exploring Logic Pro Demo Project".
    If you've downloaded all of the additional content it's located in  Library/Application Support/Logic/Logic Pro Demo Songs/Foster the People

  • Flash 11.0 doesnt work on my xoom using firefox browser but does work through the xoom default browser, any fix for firefox?

    flash 11.0 doesn't work through firefox on my Motorola XOOM 3.2.2 Flash 11.0 does work through the basic browser that came with the XOOM. Any fix for this through Firefox?

    Hi,
    This thread is about Flash in Firefox for Mobile: [https://support.mozilla.com/questions/757638 https://support.mozilla.com/questions/757638]
    Jack

  • I am connected to a time capsule both wirelessly and through ethernet...and state of the time capsule is solid green...the internet however doesn't work...The internet works fine when directly connected to my macbook pro but it won't work through the tc

    I have deleted time machine preferences...restarted the modem a bunch of times, restored time capsule to it's original settings...after I first set it up in Airport Ulitity its shows a page quickly that states there is a internet problem, but the page quickly goes away before I can read what it says exaclty and states the internet connection problem is resolved...
    However it's not resolved, I'm also having trouble doing a back up to my time capsule...I recently purchased a new macbook and retrieved/restore what was on the time capsule to the new computer...that worked fine...wireless worked fine...however when I tried to back up the new macbook...it would faii stating that there isn't enough room on the TC to do a back up...
    I didn't end up keeping the new macbook, I was just using it/trying it out while my current macbook pro was being repaired (logic board)
    Ever since I got my current macbook back from repair...my backups have failed due to their not being enough space to perform the back up...in the past the back ups would happen and old back ups would be replaced...
    I think this has to do with my current computer having a new name after the repair..."Adam's macbook pro 2" vs "Adam's macbook pro"
    The internet was working fine wirelessly through the TC a day ago, but it wasn't allowing my other laptop that was connected via ethernet access to the internet...I had a self assigned IP address error then...I don't have that problem now, but it's not transmitting internet at all...even though it's in a solid green state.
    I have no problem completely wiping out my TC including the previous back ups on it...just don't know how to go about it...I have restored it to factory settings a bunch of times and created the network from scratch...just hasn't fixed the issue
    Is there more prefences files I should delete

    If the modem is also a router, either use the modem in bridge and run pppoe client on the TC.. that is assuming ADSL or similar eg vdsl. If it is cable service.. and the modem is a router, then bridge the TC.. go to internet page and select connect by ethernet and below that set connection sharing to bridge.
    Please tell us more about the modem if the above gives you issues.

  • TS1538 On Windows Vista, everything works through the USB ports except IOS devices.  This just started and I can't get things to work.  Help!

    The past few days I find my IOS devices don't show up in "My Computer" and they don't show up in iTunes.  All other USB devices work well.  I am using Windows Vista.  I have tried several troubleshooting things, including unintalling and reinstalling iTunes, stopping and starting the Apple monitors, etc.  Nothing is working.  Ideas?

    It's really great that you're taking the time to help me.  I did several of the tests you recommend over the last two or three days.  It always shows that the iPod/iPhone/iPad isn't present.  Here's more.  I got a Norton tech to help me yesterday and it isn't the anti-virus, as we uninstalled everything and it still didn't work.  I went deeper into the system through the control panel, and found the device detected on the appropriate USB port, but it won't show up in "My Computer".  Two of the three devices show up on another PC, (I didn't test the third) so I'm leaning to something in iTunes because every other USB device I plug into the Vista ports shows up quickly and works perfectly (thumb drives, wireless mouse, camera, etc).  I already unistalled all Apple software and downloaded new, but the problem still exists.  I have restarted, unplugged, you name it and the devices aren't showing up.  I can't wirelessly sync either because one has to set that up through iTunes prior to doing it.

  • How to configure Wake On LAN to work through the Internet?

    I'm using an iOS app to wake my desktop computer. It works perfectly fine when I'm within my WiFi range. However, when I'm out of my Linksys E3000 access point, it no longer works over the Internet. So, if anyone can point me to documentation that have step by step instruction on how to configure this through the Linksys E3000 access point, I'll be grateful.

    Hi ohgosh,
    I believe your computer is already configured and has all the requirements for Wake on Lan since it works locally. To do it remotely you need to open the regular port numbers used for WOL like UDP ports 9 and 32767. Your desktop IP address must be set to static because that's what you need to enter on the port forwarding page of your router. You may use this link below for instructions on how to do port forwarding on your router.
    http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=d9b27a0c1bb9496d8c22d0d55f875ddf_17241.xml&pid=80&...
    Another option is to set up DynDNS on your router. With this, you need to subscribe to DynDNS.com. I found some online links that could help you enable WOL remotely:
    http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=3ff9013e9f4f4a0b9d9805b0697407b7_4578.xml&pid=80&r...
    http://lifehacker.com/5786791/rule-your-computer-from-afar-by-setting-up-wake+on+lan
    http://www.dslreports.com/faq/9389
    http://www.teamviewer.com/en/res/pdf/TeamViewer-Manual-Wake-on-LAN-en.pdf
    Hope this helps!

  • Over-view discussions of working through the whole suite of programs?

    One things these forums do is allow detailed discussions of say, how to do X task in Y software.
    BUT ... the whole "suite" of video programs is designed for an over-arching process, and I can't find ANYWHERE that the main process is being discussed. Just the bits and pieces of how to use each separately, or perhaps get from one program to another's tool-set & back the easiest and quickest.
    Where does one go to improve one's use of the suite as a suite? Going from Story to Prelude to PPro to Ae to PPro to Sg to PPro to Audition to PPro & off to AME?
    Neil

    I'm not sure what others are using but this is my workflow having worked with the CC suite for less than a year:
    I don't really bother with Prelude as I find Premiere does everything and more, but theoretically I could log, marker, do some (horrible) speech recognition and transcribing before scooting rushes on to Premiere. Prelude occasionally comes in handy for batch transcribing rushes that need to be passed on to facilities without native NLE's. I personally think it's pretty redundant, but happy to be corrected.
    So just import, log, edit in Premiere. Temp titles, effects and rough mix all done in Premiere.
    Specific VFX shots are dynamic linked to AE for more intensive work. Graphics are all prepped in Illustrator and Photoshop prior to importing into AE as layered comps. The links are then just updated in Premiere - no rendering out (at least from AE - all links still need rendering in Premiere for RT playback).
    Send audio clips to Audition that need work (ie. noise reduction, dynamics, leveling off). Save and update in Premiere. I render down my Premiere audio timeline for a final mix and normalise in Audition, but I'm sure there's a more efficient way of doing this.
    I still find Speedgrade a little clunky and foreign, so I'll typically dynamic link shots off to AE that need intensive grading work. I'm familiar with the AE toolkit and find I can pull keys, window and track to my hearts content easily within it. (Still haven't found a grading package as user friendly and efficient as Resolve yet).
    Final checks in Premiere of the finished pictures and mixed audio track before sending off to AME for encoding for delivery. If going to a DVD I'll run the encode through TMPGEnc instead of AME as I find it handles the detail significantly better. DVD builds are still done in DVD Studio Pro, 6 years old and going strong.
    And there you go.. a typical job can round trip through 6 - 7 programs quite happily. And the thing I'm loving about the Adobe suite is I injest the shoot content and then render out the final delivery and that's basically it.. no data ballooning in post, no transcoding, no render versioning, no writing out to export, and all largely non-destructive. Compared to the previous FCP/AE workflow I estimate I'm saving about 2.5x the drive space I used to use by having to transcode to Prores first. Makes me happy, makes my tape backup library happy, makes my relaxed server drives happy.
    Anyone have any workflow variations, tricks or time savers they'd like to share?

  • How can I work through the limitations of the Premiere Elements 9 trial?

    Adobe has a number of suggestions for working with the trial download of Premiere Elements 9.
    http://kb2.adobe.com/cps/870/cpsid_87080.html

    yogawithlexi,
    Welcome to the forum.
    Im also needing to just edit the photos but adding text. Nothing fancy. I just want to make some flyers.
    For editing photos, to be output to the printed page (whether by a commercial printing service, or a desktop printer), I strongly recommend Photoshop Elements (PsE).
    If you need to output to a video file, then Premiere Elements (PrE) can possibly do what you want, but not for the printed page - at least not easily, and with the ultimate results. First, Video is not dependent on DPI/LPI (Dots Per Inch, or Lines Per Inch), where printed material will be. Also, while PrE can output a Still Image, the quality, when printed, will be far less, than what one can obtain with PsE.
    Do you currently have Photoshop Elements on your computer, or only Premiere Elements?
    Good luck,
    Hunt

  • My sound only works through the ear phones with some apps....

    With some apps (Games and books) I can only get sound on my IPAD 2 though the earphones...this just recently occured. With movies the sound goes through the speakers just fine.  Is there some adjustment I can make so I can hear the games without using the ear phones?

    Make sure that you haven't got notifications muted (which will affect most games, but not iPod or Videos apps, nor earphones). Depending on what you've got Settings > General > Use Side Switch To set to, notifications can either be muted by the switch on the right hand side of the iPad, or via the taskbar (the function that the switch isn't performing is on the task bar instead) : double-click the home button to bring up the task bar, slide the bar to the right, and it's the icon far left. There is more info about the switch and the task bar and the mute/rotation lock functions here http://support.apple.com/kb/HT4085

  • Adobe Media Encoder for Premiere Pro CS4 stops working on the same frame every time...

    I currently have Adobe Premiere Pro CS4 and have never had these issues exporting before. My timeline is less than 3 minutes long, but it does deal with multiple big files. It rendered perfectly and it plays perfectly in the timeline. When I try to export it using Media Encoder, however, it freezes at the same frame every time (which is actually only a few seconds in!) and then crashes, so that I have to force quit. I have tried exporting it as many different codecs and the problem persists... same frame. I tried creating a new project entirely and whipping together a few titles and exporting that to see if it just won't export anything at all. The new project exported just fine, however, which I suppose is good news. But yeah, my work on that other project is very important to me and I reallllly want to export it. Please help!

    Hi Jim! Thank you for your reply. I think you are right -- and that it lies in the audio somehow!
    It turns out that if I choose to only export the video, and uncheck audio, it will export very well and smoothly. That's great news for me!
    However, now I am trying to work out how to get the audio exported without issues. I actually had the idea of just playing the audio in the timeline and recording it via Stereo Mix, but my Windows 7 driver has Stereo Mix disabled, so it's back to square one. Any ideas of what I can do about the corrupted audio not exporting, which works fine when played in the timeline?

  • Does push ONLY work through the phone network? 2G & 3G?

    I have an iPhone with EDGE.
    Can contacts and such be pushed to my phone through my local computer network (WiFi)? Or must I ping the phone network by dialing out or otherwise do a cradle sync?

    I have a Gen 1 iphone and Mobileme and push works equally well on my home Wi-Fi network as on the Edge network.
    There is no need to attach the iphone to the computer at all for contacts or calendars using push.

  • Locate my old mobile me account and can't get exchange email to work through the add an email account (exchange) feature under settings.  This is my first Mac

    I am a new Mac user on a mac book pro I7  I am trying to migrate my information from my PC so I can keep my Ipad and Mac Book pro synced.  Secondly I am trying to get my Exchange server email to work.  I have lost both settings password, and user name to my mobile me account when My first ipad was donated to charity.  I never set it up on the second ipad.  Any help would be appreciated.
    Scott

    MultiMacs wrote:
    Full name: SysAdmin (should this be the Verizon user name instead?)
    Yes. This is all verizon information.
    User name: appeared on the form for me, it is the same as my email alias
    Password: I used my Verizon account password
    Correct.
    Incoming mail server is incoming.yahoo.verizon.net and outgoing server is outgoing.yahoo.verizon.net. I changed the 110 port to 25, and turned off SSL.
    Why did you change that port? Incoming is 110, outgoing is 25.
    Every time I try to send or receive mail, I get a pop-up box asking for a password. I give it my Verizon password, then mail fails. If anyone has experience with Verizon email, please tell me what I am doing wrong. I have been trying to get the email to work for several hours now.
    Check the Verizon site for examples. They will have more than webmail. You don't have to look for anything specific to Apple Mail. There will be settings for Outlook, just use those.

  • HT1338 My macbook pro(2010) is not reading the hard drive, but the hard drive works through the USB?

    Hi everyone,
         My Macbook pro(2010) is not reading the internal Hard Drive. At first I thought it to be a hard drive gone bad, so i bought a new hard drive. My macbook is still not reading the Hard Drive. I am able to use the original hard drive through a external(USB) connection. Also, when the macbook turns, there is a redelling sound. Can anyone offer me any suggestions to what the problem might be?   

    It sounds like the internal cable connecting the HDD to the logic board is improperly connected or faulty.  An appointment at an Apple genius bar might be a good option.  The repair should not be too expensive.
    Ciao.

  • I have followed "Importing favorites and other data from Internet Explorer" but although I've worked through the dtages and it says it has worked, the expected internet explorer folder does not appear in bookmarks

    I have installed Firefox today, and like the look of and the speed. But I have an extensive set of foldersin my IE Favorites and remebered passwords I don't want to have to reimput.
    I have now tried twice folowing "Importing favorites and other data from Internet Explorer " which seemed to go smoothly, once with IE open and the other with it closed, and closed down my PC between each attempted installation. Any ideas?

    It usually works better if you export the Favorites in IE to an HTML file and import that file in the Firefox Bookmarks Manager.
    * Export the favorites in IE to an HTML file (bookmarks.html): File > Import and Export
    * Import the HTML file in Firefox: Bookmarks > Organize Bookmarks > Import & Backup > Import HTML: From File
    See also http://kb.mozillazine.org/Import_bookmarks ("Import from another browser" and "Import from file")

Maybe you are looking for

  • Calculation of surcharge on sales tax

    hello everyone how do we calculate SC on sales tax amount base amount                         100 sales tax say 10%                  10 surcharge say 2% on 10          2 amount to be collected           112

  • Printing envelope not formatted correctly on custom size 8.75 by 5.75

    Printers and All-In-Ones running win 7 64 bit, officejet 8600 pro all update current, In works 2007 word processor or 2011 Hallmark card progam.  downloaded latest driver and reinstalled same (deleted original dr and rebooted first). Envelope is corr

  • InDesign CC for web

    Are there new features in InDesign CC for web development?

  • Creating a variable in a select

    Hi, I trying to do a select statement like this: select (x-y) as test1, (test1*4) as test2 from table X so i don't have to recalculate x-y. There is something like that in SQL?

  • SM62 & SM64

    I'm trying to understand the concept of SM62. So if I want to manually trigger an event, lets say a process chain, so that means firrst I have to maintan an event for it in SM62? If yes, can anyone guide me through the process ? thanks in advance