Help. New to scripting!  Find registration colors used

Hi!
i have this script to find registration colors.... but when run in ESTK. it show errors on the below highlighted....
could anyone help out this!
error it throws is:
function myCheckForRegistration(myEvent){
var myRegistrationSwatchUsed = false;
if(app.selection.length != 0){
for(var myCounter = 0; myCounter < app.selection.length; myCounter++){
if((app.documents.item(0).selection[myCounter].fillColor ==
app.documents.item(0).swatches.item("Registration"))||
(app.documents.item(0).selection[myCounter].strokeColor ==
app.documents.item(0).swatches.item("Registration")){                    error is: // expected:)
myRegistrationSwatchUsed = true;
if(myRegistrationSwatchUsed == true){
alert("The Registration swatch is applied to some of the\robjects in the selection. Did you really intend to apply this swatch?");
thanks
shil..

hellow lauv!!!
i tried your command....
ungrouped the object.item(n) between OR....
function myCheckForRegistration(myEvent){
var myRegistrationSwatchUsed = false;
if(app.selection.length != 0){
for(var myCounter = 0; myCounter < app.selection.length; myCounter++){
if(app.documents.item(0).selection[myCounter].fillColor ==app.documents.item(0).swatches.item("Registration")||
(app.documents.item(0).selection[myCounter].strokeColor ==app.documents.item(0).swatches.item("Registration")){                   //  error is: expected:)
myRegistrationSwatchUsed = true};
if(myRegistrationSwatchUsed == true){
alert("The Registration swatch is applied to some of the\robjects in the selection. Did you really intend to apply this swatch?");
the error is:
thanks for fastidious care on my script....
shall i wait for the reply...
shil!

Similar Messages

  • Help with shell script: Find Recently Modified Directories

    I'm trying to do something that appears to be beyond my capacity to figure out on my own. I'm hoping that someone more skilled than I at scripting can help.
    Challenge
    I'm trying to build a script that finds directories and gzips each individually, but only if they've been modified within the last, say, 7 days.
    Context
    The idea is to create a set of gzipped directories that can then be uploaded to a remote server for backup and archival purposes. Since the parent directory is 8+ GB in size, and 99% of the contents does not change from week to week, I want to identify, zip, and upload only the directories that have been modified recently. (Uploading is outside the scope of this script).
    *Cut to the Chase*
    In plain english, my script might look like:
    1) find sub-folders contained within "~/Sites/" that have been modified within the last 7 days; do not go more than 1 level deep (i.e., return only the top level folders within ~/Sites/)
    2) loop through the returned list and gzip each directory
    I'm hoping that this can be done easily. Automator doesn't provide filters that are granular enough to do this, so I'm thinking bash is the way to go. Any help would be most appreciated, and will be rewarded with all kinds of good karma. =)
    -Steve

    OK, here is an untested and possibly syntactically incorrect Perl script:
    #!/usr/bin/perl -w
    use strict;
    my $siteDir = "$ENV{HOME}/Sites";
    # Get all the top-level contents of the Sites directory.
    opendir(SITES, $siteDir) or die "Couldn't open $siteDir folder.
    my @siteContents = readdir SITES;
    closedir SITES;
    # Reset my script startup time to be 7 days ago.
    $^T = time - (6060*247);
    # Now find all the modified directories since then.
    my @modifiedSiteDirs = grep { -d "$siteDir/$_" and -M "$siteDir/$_" < 7 } @siteDirs;
    foreach my $modifiedSiteDir (@modifiedSiteDirs)
    system qq{tar zcf "$modifiedSiteDir.tar.gz" $modifiedSiteDir};
    Actually, I did just test it with only a printout instead of executing tar and it works. I'm not sure of the path to tar on MacOS X. You may have to add that.

  • Spot color used in indesign document

    Hi all,
    How to find spot color used (text, frame and any othe item) in Indesign document.
    Please help me to write javascript code.
    thanks,
    mon

    'unusedSwatches' -- sure. Removing these will leave just the used ones (something like that was asked a while ago). But it seems the OP wants to know where the remaining ones are in use.
    Graphic objects can be tested per Loic's script, but each and every single table cell fill and stroke needs to be checked, and for text I can't think of anything else than explicitly searching for fill & stroke.
    The OP needs to 'find' spot color usages, which is rather unclear in the context of a script. Find it -- and then what? Report? Highlight/select? (Which doesn't work when more than a single occurence is found.) Change to another color?

  • Colors used in the publication

    How to determine which colors are used in the publication?
    We must get - cyan, magenta, pantone 100 C.

    Hello,
    I did, a few months ago a plugin to find the colors used in a document called JLG.Colors.
    It can be found at http://jlg.outils.pagesperso-orange.fr/Pages/ManuelTelechargerCS5US.html
    This module is for CS5 Mac.
    JLG.

  • How to to find out if the objects used "Registration" color or not?

    Is it possible to find out if the objects used "Registration" color or not via scripting? Kindly advise me.
    Thanks for looking into this.

    Hi,
    May be you might read this post
    http://forums.adobe.com/thread/623432?tstart=0
    ciao , art.chrome

  • HT5022 I'm trying to add a "new client" to my wireless network using Airport Utility, but I can't find that option in the new version.  I've downloaded all available updates of the OS and the utility..  Help!

    I'm trying to add my HP wireless printer as a "new client" to my wireless network using Airport Utility, but I can't find that option in the new version.  I've downloaded all available updates of the OS and the utility..  Help!

    Why would you need to ADD a new Client. Unless the APE sytem is completely different then any other Wireless router the printer should get an IP address from the router. That is IF the printer is setup to get an IP from the LAN DHCP server.
    Now you may want to make that IP it does get a Staticly assign IP address so it never changes, which will screw up printing if it does change. But i don't know if you can do that with APE routers.

  • I am new to scripting & I need Script for Document color mode

    Hi,
    Please help me to create a script which should find the Document color mode. I am new to scripting. And please let me know how to use the same.
    Balaji

    Are you using the Extendscript Toolkit Editor (ESTK)? In the Help menu you can find all the properties for Document that can be queried/changed.
    (Personally, I don't use ESTK, because I really really hate it. But I don't want to miss the Help, so I made my own version. I have Illustrator CS4, and it's possible your version doesn't have this, but under Document I find:
    documentColorSpace
    DocumentColorSpace:
    DocumentColorSpace.RGB
    DocumentColorSpace.CMYK
    readonly
    The color space used for the document.
    For the how-to-use I glady refer you to Adobe's own Starting With Scripting guides.)

  • Where can I find information about using the Mozilla Help web pages?

    Such as tips to make searching the help pages faster like adding symbols + or - or " which some internet search systems use.
    There is simply too much information offered for me ( a neurologically disabled person - specifically with working memory difficulties [dyslexia, dyspraxia/DCD] ) and all one can do is write yet another new question - which will probably be a repeat of what has been asked before in a different way and increase the already existing mass of information for the next enquirer to 'wade; through!
    The consequence of not knowing where to look for information, is that I just bumble along and never become as proficient using Firefox (and the web and my computer) as might be possible if I had a really good teacher giving personal one to one guidance matching my knowledge gained so far and skill potential.

    Hi Andrew
    The main introduction to Firefox are these articles
    * https://www.mozilla.org/en-US/firefox/tour/ (it is interactive click to see what happens)
    ** https://www.mozilla.org/en-US/firefox/desktop/
    * [[Get started with Firefox - An overview of the main features]] a long article with plenty of pictures and short video clips
    This is a listing of your previous questions on this forum
    * https://support.mozilla.org/en-US/search?a=1&asked_by=TolknyAgain&sortby=1&w=2
    *Generally for anyone who is signed in to the forum their own questions are seen [https://support.mozilla.org/en-US/questions/all?owner=mine&show=all here] ( [https://support.mozilla.org/en-US/questions/firefox?owner=mine&show=all or] firefox only)
    We do not give general computer help here, but some links that may help you.
    The default search engine used by most versions of Firefox is Google these are some useful help pages
    * [https://support.google.com/websearch/?hl=en#topic=3180167 Welcome to the Search Help Center]
    ** [https://support.google.com/websearch/answer/136861 Search operators] Note a dash maybe used to exclude a word
    **https://support.google.com/websearch/answer/2466433 [ Punctuation and symbols in search]
    * The '''easy way''' just use http://www.google.com/advanced_search
    If you find something useful remember to bookmark it, and that Firefox is good at finding things you have already visited
    * [[How to use bookmarks to save and organize your favorite websites]]
    * [[Awesome Bar - Find your bookmarks, history and tabs when you type in the address bar]]
    Post back in this thread again if you have further questions about Firefox use or our help articles.
    We may not be able to give one to one teaching but we can try to answer questions about Firefox.
    Possibly consider using Firefox on wikipedia and the Khan Academy to learn more yourself.
    This is very simple you have probably already progressed past this but serves as examples
    Some helpful terms
    * [https://simple.wikipedia.org/wiki/Web_browser Browser] <-- clickable link - often blue in colour <br /> More detail https://en.wikipedia.org/wiki/Web_browser
    * [https://simple.wikipedia.org/wiki/Hyperlink Link] <-- link <br />https://en.wikipedia.org/wiki/Hyperlink <-- different article
    * [https://simple.wikipedia.org/wiki/Search_engine Search Engine] <br />https://en.wikipedia.org/wiki/Web_search_engine
    * [https://simple.wikipedia.org/wiki/World_Wide_Web World Wide Web] vs [https://simple.wikipedia.org/wiki/Internet Internet]
    **I will leave it as an exercise for you to look up the ordinary English versions of ''www'' & ''Internet'' in en.wikipedia.org
    ** Note the linked articles are themselves full of links.
    * http://en.wikipedia.org/wiki/Khan_academy -> https://www.khanacademy.org/ <br /> Includes subjects from basic arithmetic to computer programming

  • I bought a new iMac today. I'm using migration assistant to move all my software, but the time just keeps getting longer. It says connect an Ethernet cable for faster data transfer. I did, but that doesn't seem to help. Any ideas?

    I bought a new iMac today. I'm using migration assistant to move all my software, but the time just keeps getting longer. It says connect an Ethernet cable for faster data transfer. I did, but that doesn't seem to help. Any ideas?

    m1doc,
    Are you migrating from a Mac or a MS Window machine? Either way you probably should be in touch with AppleCare, you have 90 days of free AppleCare telephone support. They can usually help on issues like this. If you don't know the phone number please use http://support.apple.com/kb/HE57 to help find the number in your country.

  • My Illustrator does not allow me to change colors using swatches panel. Help pleas.

    Few days ago I started having strange problems with my Illustrator CS5 application. I am using MacBook Pro with Intel Processor.  After major update on the Mac OS  few days ago  I noticed I can not change colors in my drawings using swatches panel. The function on my Illustrator CS5 stopped working.  When I select object and try to change its fill or stroke color using fill and stroke from the options bar above work space,  none of the swatches would work.  The are there how ever nothing hapends when I select them, the color remains the same.The same thing happens if I try to use the swatch panel, I select the object then I try to select new color from swatch but the fill or stroke does not change. I can only change color on my drawings using the color panel but that is not useful for me since I need to get precise colors using approved color swatches ether from pantone library or approved by client.
    The other strange thing is my selection tool does not deselect when I click outside on or of the artboard, the object remains selected until I reselect another object or use the keyboard short cut to deselect it.
    I have tried various options to resolve the issue from deleting and reseting preference to completely uninstalling and  reinstalling Illustrator CS5. I even installed back my old CS4 version because I had to complete a project  and the same issue is happens there as well. I also reset the application using Time Machine from few months ago when it was working correctly. What happens when I reset or reinstall the app, it works for  about 10 min correctly as it should and and then it reverts to the same problem. I am out of options and do not know what else I could  do to fix this. Right now I am working on my old Mac tower G5 and CS4 where everything works as it is suppose to, but I really need to get this fixed. Can any one help or has solution for my problem? Please.

    hey i m working on my illustrator and i m having many problems with my swatches
    for example i use the green phosphorique i don't get this color i get another green
    and many colors too it's like illustrator chooses for you the only green color
    so please i kind of need help i can show you pictures of that i print screen viewed them.. so anybody who can help... pleaaaaaaaaaase contact me because i m having a project now..
    my e mail is [email protected] i would be thankful
    i even tried to download the illustrator on my friend's computer also i m having this problem ....

  • Please help.  Photoshop isn't displaying colors correctly after new monitor/calibration

    When I open JPEGS or RAW images in photoshop they have a dull, flat color to them.  This is happening after recently buying a NEW PA271W wide-gamut display and calibrating it using Spectraview 2.  It doesn't matter whether I have the Working Space in PS set to Adobe RGB or sRGB under color settings... The only way I can make my image look normal is to go under settings and ASSIGN PROFILE to Adobe RGB.  It looks fine then.  I could live with that, except the bigger problem is that I begin my editing process in RAW, where the colors are also looking flat.  The best I can tell, there is no way to assign a profile at this stage... and I don't even know if that would help. 
    I've been working in photoshop many years and I do know that RAW images have a 'flatter' appearance to being with, but this is something completely different.  For example, when I slide photoshop onto my other monitor next to it (I have multiple monitors) - the color reverts to the normal color I want .  And if I then slide photoshop back onto my new NEC monitor, the normal color actually stays intact for about two seconds, then reverts back to the dull color.  So I am unable to begin my work process in RAW since the colors are wrong.  Also, I know that my new monitor is capbable of displaying my images in their proper colors because when I use any of several different image viewers I have - irfanview, etc. - everything is fine.  It's only in photoshop.  Any help will be greatly appreciated.  Thanks, Chance.  Oh, and I have CS5 and I'm using Windows 7.

    What you're describing sounds like your display profile is incorrect.
    Don't mess with the working space, don't assign profiles -- just fix the display profile.

  • I accidentally set up my new ipad in itunes under the name of my existing ipad and need to set it up as a new device. Help. I cannot find a way to start fresh.

    I accidentally set up my new ipad in itunes under the name of my existing ipad and need to set it up as a new device. Help. I cannot find a way to start fresh.

    That's probably not a good idea to try to share apps since you will have to switch ID's each time you update apps and sync apps from iTunes.
    And technically - according to Apple's terms - you cannot share apps using different ID's. You can actually lock yourself out of an ID for 90 days if you switch ID's and if you associate the iPad with another ID.
    The bold type is a copy and paste from the site that I referenced below.
    When you turn on iTunes Match or Automatic Downloads, or when you download past purchases on an iOS device or computer, that device or computer becomes associated with your Apple ID. This article describes how to manage these associations.
    http://support.apple.com/kb/ht4627

  • I can't find the color I used

    Some time ago I made website buttons.  I now need to change the text on top of one of the buttons, but I can't figure out the exact color I used.  The dropper does not pick the original shade.  It seems to be off.  The button was rasterized and saved as a JPEG.  The original PSD file is gone.  I hope I don't have to redo 11 buttons just because I can't find the original color.  Can anyone help?
    I attached a copy of the button.  It is the blue color on top and not the rollover color I need to find.

    The problem comes from the fact that the text is small and there's a lot of JPG artifacting. Even if you find the original color, it will still look off compared to the other buttons while in Photoshop because of the lack of JPG artifacting. You'll likely have to preview the colors using File->Save for Web & Devices set to JPG and a low quality setting.

  • Purchased a new Macbook Pro 13". I used migration assistant to transfer. I can't backup to time capsule.  I am getting on error The backup disk image "/Volumes/Herb's Time Capsul/Herb MacBook Pro.sparsebundle" could not be created (error 17).  Help

    Purchased a new Macbook Pro 13". I used migration assistant to transfer. I can't backup to time capsule.  I am getting on error "The backup disk image “/Volumes/Herb's Time Capsul/Herb MacBook Pro.sparsebundle” could not be created (error 17).  Help!

    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the page that opens.
    Select the System keychain in the list of keychains in the sidebar of the window. If you don't see the list, click the down-arrow icon below the sidebar.
    Then select Passwords in the Category list at lower left. Click the Kind heading in the list of keychain items to arrange it by Kind.
    Locate the AirPort Disk Password with the name of your Time Capsule. Double-click the item and check the box marked Show Password in the inspector window that opens. You'll be prompted for the administrator login password. Make a note of the AirPort password, then close the inspector window and delete the item.
    Also delete any other AirPort DIsk Password items for that same Time Capsule, which may have had a different name in the past.
    Quit Keychain Access and try again to back up.

  • I cannot find MACs new 'Photos' in Finder under 'Media' when I try to attach a picture using Outlook 2011 for email.

    Hi I am using Outlook 2011 and i have today uploaded MAC's new 'Photos'. When I try and attach a photo Finder no longer show the IPhoto liv=brary in Finder under Media and there is no replacement.
    Help i need to send a photos using the attach button in an email in Outlook.
    Many thanks.

    as an additional issue i cannot find any method now of attaching a photo to an Outlook 2011 email using Photo (e.g. using the paperclip button or the media browser)
    This seems odd to me and there must be a work around.

Maybe you are looking for

  • Memory Upgrade on DV7T-3000 (NQ339AV)

    Hello, I have a Pavilion DV7T-3000 with i7-820QM Processor. I am planning on a memory upgrade. Has any one tried upgrading it to 16GB RAM ? (2 x 8GB). As per specs it can only go up to 2x4 GB. Thank you for for any feed back.

  • The case structure is not working well on comaring two strings using true or false string matching VI

    I need an execution of commands after the reply from the instrument matches with the string I provided for that i used true or false string match VI on which the true string the matching command and the string is the reply from the instrument. And I

  • Posting Line Items after Archiving in SAP

    Hi Experts, I have a small query regarding SAP data archiving in Financial accounting data. I have archived Financial total records data for one fiscal year (2010), and that data is deleted from the SAP database. Now my client is trying to do catchup

  • Errors in export

    Hello, when I make an exporter and verify the Log I see this I have these errors, as I correct this? I Oracle 10g 10.2.0.3.0 in a Red Hat Linux. EXP-00008: ORACLE error 4063 encountered ORA-04063: package body "SYS.LT_EXPORT_PKG" has errors ORA-06508

  • Capture Changes on ALV Grid Display

    Hi, I am displaying a check box on ALV Grid Display. I have to provide a push button on the application tool bar through which i have to perform some other action. How can i capture the changes made to that check box? I am using the FM 'REUSE_ALV_GRI