Looking for a script...

To print all open windows  in Illustrator CS5 (or illustrator files in a folder) then close the files. Any help would be greatly appreciated. Thanks in advance.

ok, here it is, I think if you're on a Mac, it should work. I'm having trouble printing CMYK in Windows, it has to do with my system color management settings. The script prints and closes all open documents and ***it will not*** save any changes, so use with care, save everything before running...it can be modified to leave the documents open, or to close them saving changes, it is your choice.
if you run the script with no documents open, it will prompt you to select a folder with ai files to print.
it should work one way or the other...I hope it works either way...let me know how it goes.
var docs = app.documents;
var docCount = docs.length;
// if there are opened documents, print them, otherwise ask for a folder to batch print
if (docCount>0) {
    alert(docCount);
    printOpenDocs(docs);
else {
var folder = Folder.selectDialog("Select Source Folder..."); // select folder
printFolder(folder);
// Prints and closes each open document
function printOpenDocs(docs) {
            for (j=docCount-1; j>=0; j--) {
                var jdoc = docs[j];
                jdoc.print(options);
                jdoc.close(SaveOptions.DONOTSAVECHANGES);
function printFolder(folder) {
    if (folder==null) {
            alert("Good Bye");
    else {
        var files = folder.getFiles ("*.ai"); // get files
        var fileCount = files.length; // count them
        if (fileCount>0) {
            for (i=0; i<fileCount; i++) {
                var idoc = app.open(files[i]);
                idoc.print();
                idoc.close();
        else {
            alert("There are no Illustrator files in this folder.");

Similar Messages

  • I blog on TypePad using Word 2007 and documents freeze when I'm looking at them in Windows explorer; why do I get the error message that Mozilla is looking for a script?

    I have now had two error messages - the first one looked for this script: Script: resource://gre/modules/XPCOMUtils.jsm:258. The second one (today) looked for Script: resource://gre/components/nsPrompter.js:68.
    I have reset my word template, also reset word registry for data and options (as per Microsoft's help pages) for both those 'fixes' there was an initial improvement, but the problem happened again after I reposted on my blog today and then went to Windows explorer to view my files. It seems to 'seize' as I select a file, so that the preview does not appear (for up to 15-20mins).
    I see on the internet using the second script as a search just now that one other has had a similar problem and one also since Mozilla 4 upgrade. My problems have also been pretty much since I upgraded.
    It happens (apart from my fixes) every time I go to look at a word document via Windows explorer. Excel files are less affected.
    One web suggestion is to clear the cache, but I am hesitant to lose all my passwords unless I have to.

    I still have the problem although I uninstalled Mozilla (clearing the cache didn't work and neither did Word diagnostics), so have ended up thinking it could be Norton (the manual update worked x1) or Windows. Today I found an answer: disable the preview pane in Windows Explorer - there's a history of problems with this view.

  • Looking for a script to automate renaming layer objects, not the layer itself!

    Hey there everyone,
    I was wondering if there is a possibility to create/have a script for an automated renaming of several named layer objects in Indesign (CS6).
    The situation, I'm facing is a document for a templating process with at least 80 layers and sometimes some special elements on each layer. The naming of the layers is kind of repeating for each page that is used. The only difference is some prefix change in the layer name and/or the name of an element itself. My problem is, that I need to rename most of those layers AND elements in a same way and I'm looking for a script that asks me for the name of a layer or element (perfect would be just a part of the name to have multiple steps at once) and I have the chance to type in the desired value. It affects frames, graphical elements and text boxes.
    If anyone has an idea, how to simplify this process I would be very glad to get some informations or advices.
    Thanks in advance
    Ralf

    Here is a more descriptive version of the script above... :)
    # Change "PSDrive" to PS1: (Sitecode)
    CD PS1:
    # Get all CMPackages to $CMPackages_All Variable
    $CMPackages_All = Get-CMPackage
    # Set the DP to use with. You may need to run it again with other DP just in case some Packages are missing...
    $DPName_FQDN = "YourDP.Contoso.com" # Your FQDN DP name to reference from.
    # Set folder to store *.pkgx files
    $FilePath = "E:\_ESD\Prestage\" # FilePath
    # For all CMPackages
    foreach ($obj in $CMPackages_All) {
        $packageType = $obj.PackageType
        $packageID = $obj.PackageID
        $packageVendor = $obj.Manufacturer
        $packageName = $obj.Name
        $packageVersion = $obj.Version
        # Formulate File name based on Vendor Name, version and PackageID
     $FileName = $FilePath + $packageVendor + "_" + $PackageName + "_" + $packageVersion + "_" + $packageID + ".pkgx"
        # Replace space with underscore
        $FileName = $FileName.Replace(" ","_")
        if ($PackageType -eq 0) {
            if (!( Test-Path $FileName)) { # This makes the package to skip if it is already created.
                Write-host "Publishing CMPrestage Content for $PackageID $PackageName to $FileName via $DPName_FQDN ..."
                Publish-CMPrestageContent -PackageID $packageID -DistributionPointName $DPName_FQDN -fileName $FileName -ErrorAction Continue
    YPae

  • Looking for a script that get images' urls from a website

    Hi,
    I have a website where users can insert theirs hotel informations.
    Most of them do not insert photos, I guess because the procedure is quite long and difficoult for the average user's skills.
    I'm looking for a script that take as input the url of the website and give as output the urls of the images of the site, so the user can decide which to upload on his tab.
    Someone can help me?

    La_Salamandra wrote:
    I have a website where users can insert theirs hotel informations.
    Most of them do not insert photos, I guess because the procedure is quite long and difficoult for the average user's skills.
    I'm looking for a script that take as input the url of the website and give as output the urls of the images of the site, so the user can decide which to upload on his tab.
    Someone can help me?
    You have to improve your design. Even if you can find the Coldfusion code, your design will still fall short in 2 ways.
    First, it is unreliable, because you're depending on some arbitrary site to be available and up to speed. Secondly, it is aesthetically wrong to be collecting pictures, especially large numbers of them, dynamically from someone else's site.  Think of their copyright and bandwidth.
    Fortunately, there are simple solutions. First, identify, by eye, the web pages containing the pictures you're interested in. Ask for permission from the owner.
    You could indeed use Coldfusion's cfhttp or any other script to download the JPGs, PNGs, and so on. But then, why waste your time re-inventing the wheel? It is infinitely better to use a web crawler !
    With most crawlers, you only have to supply the URL of the site, and the file extensions it has to grab (in your case, jpg, png, bmp, and so on).
    One click on the button, and you have them reeling in. Automatically. Some crawlers are considerate enough to enable you to adjust the download bandwidth. (We can learn from a million years evolution wisdom. The vampire bat is known to inject a painkiller before sucking!).
    Now that you've downloaded the images to your site, the links you display to your users are all yours. You may choose to resize some of the images, display them as you wish, and the issues of reliability and bandwidth are now up to you.

  • Install gets stuck looking for /global/scripts/ac_media.js

    My dad is older and has moved into a retirement home.  He gave us his iMac G4.  We have all of the original install discs (including the Mac OS X 10.2 operating system).  My first problem is that he can't remember his password (even when we share his "hint" with him).  Through a general Google search and on the Apple support site, I have read that I can restart the computer with the OS disc in it, holding the C key down and it will reinstall the OS and I can create a new password.  My problem is when the install starts running, it seems to open the IE and the status bar indicates that the G4 is accessing the Apple site to search for files.  The process gets stuck when looking for /global/scripts/ac_media.js.  I downloaded that file from Apple onto a thumb drive, but didn't know where to copy it into my G4.  Can anyone help me?
    Thanks,
    Julie

    My dad is older and has moved into a retirement home.  He gave us his iMac G4.  We have all of the original install discs (including the Mac OS X 10.2 operating system).  My first problem is that he can't remember his password (even when we share his "hint" with him).  Through a general Google search and on the Apple support site, I have read that I can restart the computer with the OS disc in it, holding the C key down and it will reinstall the OS and I can create a new password.  My problem is when the install starts running, it seems to open the IE and the status bar indicates that the G4 is accessing the Apple site to search for files.  The process gets stuck when looking for /global/scripts/ac_media.js.  I downloaded that file from Apple onto a thumb drive, but didn't know where to copy it into my G4.  Can anyone help me?
    Thanks,
    Julie

  • Looking for a script which gives Drive,Diskspacefree,Databasename,Filename,Filetype,Filesize,Spaceused,spacefree,free(%),MaxsizeMB,autogrowthsize,Filegroup

    Hi All,
    I need a T-script  for sql 2005 and 2008 which should give output as:
    Looking for a script which gives Drive,Diskspacefree,Databasename,Filename,Filetype,Filesize,Spaceused,spacefree,free(%),MaxsizeMB,autogrowthsize,Filegroup

    In the list below, everything that is in bold face is available in sys.master_files:
    Drive
    Diskspacefree,
    Databasename
    Filename
    Filetype
    Filesize
    Spaceused,
    spacefree,
    free(%),
    MaxsizeMB
    autogrowthsize
    Filegroup
    Everything in bold face is in sys.master_files. Diskspacefree is also fairly simple; you can get it with xp_fixeddrives.
    Filegroup requires you sys.filegroups in every database, although you can hardcode "PRIMARY" for the file_id = 1.
    To get space used per file, it appears that you need to need to visit every database and run fileproperty(filename, 'SpaceUsed') to get the data.
    You need to revisit the topics for the views and function I have listed here. xp_fixeddrives is undocumented, but the output is very simple to grasp.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Looking for iTunes Script

    I'm looking for a script that would remove ALL the album art from my songs. I've got so many mismatched album covers/art that it would be easier to start over from scratch than to go through all my songs one by one.
    Thanks in advance,
    Chris

    You really don't need a script.
    Select all songs (Command-A) and Get Info (command-I).
    Tick the checkbox at 'Artwork' and click OK.
    All embedded artwork will be removed.
    To remove all downloaded artwork (from the iTunes Store), select all songs again, control-click on the selection and choose 'Clear Downloaded Artwork'.
    Hope this helps.
    M

  • Looking for a script to connect bodytext to footnote and cross-references

    Hi,
    Need to do the following:
    I was provided with separate (tagged-text) files: bodytext, (foot)notes and cross-references. Now I am looking for a solution (script?) that can do the following:
    to restore the connection between the body-text, the footnotes and te cross-references after placing these in a document in Indesign.
    The cross-references should appear (in anchored text-frames) in the margin and the notes in a separate frame at the bottom of the page. If possible in the same way as footnotes in Indesign appear, but in a separate frame to be able to do some more formatting than native footnotes would accept.
    I have tested the plugin: Side Heads from InTools, and tis works well with Indesign files tthat contain footnotes. But this doesn't work with separately placed footnotes from a tagged-text-file, as they re not knotted together.
    I can't do any scripting myself.
    I would appreciate any help, and I am looking forward to your response...
    Regards,
    kkingg

    The first thing to do is:
    regexp "match regexp = ([0-9]+)" $_cli_result match count
    if $count eq 0
    exit 0
    end
    The second is a bit more challenging.  I think this will work:
    cli command "show call active voice br"
    foreach line $_cli_result "\n"
    regexp "^([0-9a-zA-Z]+) : " $line match callid
    if $_regexp_result eq 1
      continue
    end
    regexp "^dur 1d" $line
    if $_regexp_result eq 1
      cli command "show call active voice br | section $callid"
      syslog msg "$_cli_result"
    end
    end

  • Looking for a script like Link Optimiser

    I'm looking, very unsuccessfully, for a script that will Resize all the images in my document to 100% - this script also had the option to open the image in photoshop and sharpen it.
    I had it a few years ago but can't seem to find it now. Any ideas?

    I have one in development...opens the image in photoshop with the crop from ID. (does not sharpen or save)
    Getting it ready for public release is on my queue for this month, but I'll send it to you privately for now.

  • Designer looking for Action Script/XML galleries

    I am designer. I know XHTML and CSS3, but am really having lots of trouble learing Action Script and XML.
    I need to create a photo gallery for a client and am looking for resources.
    I will have to buy a pre-coded gallery and plug in my own photos.  Looking for suggestions on where to look.
    Thanks

    you can use google to search for premade galleries:  flash as3 photo gallery template.
    if you want a custom made one, send me an email via my website:  www.kglad.com

  • Looking for PowerShell Script

    I'm looking for a PowerShell script that I can run and will copy a file with today's date yyyymmdd.txt  to a remote location renaming it to XXXXXX.log and over writing the existing *.log.   
    Sounds simple, but as a newbe to PS, I could use some help.

    Check out: Get-Help Copy-Item -Full
    That cmdlet can copy a file from one place to another, rename it, and also overwrite a pre-existing file (-Force).
    Also check out Get-Help about_Variables for info on how variables work in PowerShell. You can use Get-Date -Format yyyymmdd to get the values you'll need for your source file name, then save it to a variable to use with Copy-Item.
    I don't know what XXXXXX.log represents, but that might just need to be another variable.
    Does that help?

  • Looking for RT61 scripts? [Solved Maybe!]

    Following this in wiki....
    http://wiki.archlinux.org/index.php/RT61_Wireless
    looking for scripts?
    Anyone know where I can find them?
    Edit Just looking at wicd...will read install notes looks like what I need!

    My setup is very similar to tomk's - minimal Arch install, LTS kernel, managed over SSH. It used to be my compiling setup (until my more powerful laptop came along), but it does a mighty fine job as an MPD server (connected to my stereo), torrent server and NFS file server (for my HTPC). Also runs a small webserver (ruTorrent frontend) but the webserver is starting to be employed as an FTP replacement - so I can access my OpenWrt builds from the LAN, and as an Arch package repo.
    I back up like once a month over eS-ATA. 1 TB & 2 TB HD's in my server, identical ones in my eS-ATA disks. 2 GB of RAM, but I could probably make do with 512 - on i686, that is. I would take out what you don't need, 4 GB sounds like overkill for just about any server unless you're gonna virtualise and stuff, and you shave a few Watts off your idle usage.
    RAID is not a backup, the best backups are off-line and (ideally) off-site. My eS-ATA disks are in another room, so far for off-site .
    Last edited by .:B:. (2011-09-12 22:33:11)

  • Looking for Pages script to find "return" "return" and delete 2nd one only

    Looking for a Pages Applescript to find "return" "return" and delete 2nd one only. Perform on entire document.
    Thanks

    Funny, the same question was asked on 2011/11/12 in http://macscripter.net/viewtopic.php?id=37477
    Nigel Garvey posted a neat answer :
    --{code}
    tell application "Pages"
       delete (paragraphs of front document whose length is 1)
    end tell
    --{code}
    Yvan KOENIG (VALLAURIS, France)  lundi 14 janvier 2011 11:01:29
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Looking for PS Script to Save and Close All Open Documents

    I used ACR and CS5 to process my Nikon D3 NEF files. I would like a script that would save all open documents (witin PS) with the highest possible quality (12). I've found several scripts that will close all open documents with save but cannot figure out how to implement a save script.
    For example, I may have 20 converted .jpeg files open. I would like to run a script to save & close all open documents.
    Is it possible? Can someone post an example working script?

    Take a look at the image processor, under the scripts menu.
    MTSTUNER

  • I'm looking for a script that preloads a Splash Screen on Android

    I've read all threads here already about this subject. For most AdobeAir projects for Android, no matter what size, it could take up to 20 sec to load the app, and while it loads, all you see is a black screen. As there's no support for a Default.png like there is for iPhone, we have to use a preloader.
    I've only found one for Flex, which is no good to me as I'm using Flash Pro 5.5 (IDE). I've tried doing some simple preload-a-swf-preloader but it just loads it to 100% before showing anything anyway.
    Anyone here that can share a script of a simple preloader for Flash CS5.5?
    I know that to reduce the loading time and show a splash screen on android we need to make a very small swf that will contain the loading screen image, and that same swf will also preload the maingame.swf (but can that be done? Appstore don't like code in more than one swf) into it. My tries have failed.
    Here's some quotes in case someone who reads this might be knowledgable enough to help me out:
    Yes its possible to get a splash to appear straight away (well within one to 2 seconds which is close enough) but
    (a) You have to create a small splash .SWF which loads your main .SWF (OK so that's fairly obvious but a "Default.PNG" splash screen facility as per the iPhone packager and FLEX projects is what you might expect)
    (b) Your splash .SWF must embed the splash image. If you try to dynamically load an image nothing will appear until the whole of the APK file is loaded ( and presumably initialised). That was what I was doing wrong.
    It takes 20 sec to load, it's all black before it's done loading and the runtime takes up 25mb!
    (1) Yes that is a bit of a problem but seems to be the cost of compiling in the AIR runtime.  I am sure that most mobile projects only use a subset of the entire AIR library - its a shame you can't just compile in the bits that you need and drop the rest.
    (2) This is partly because of (1) and the fact it takes so long to get a big file up and running with AIR.  You need to create a preloader that is very small and all it does is display a splashscreen and then loads in the main 25mb file that you embed in the assets of your preloader.  The small preloader appears quickly and then gives you time to do your 'work' loading the main app with something onscreen.  This gives an example / explanation and there are others out there :
    http://www.mcbrearty.me.uk/index.php/2011/05/09/actionscript-mobile-pr oject-splash-screen/

    Hi Nick,
    Using the FileSystemObject object to delete a folder will delete the profile directory, but it won't delete its associated registry path:
    HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\user's SID
    There are also two other complications: 1. you can't delete a profile for a user that's logged on; and 2. the user might have logged off, but the profile might not be completely unloaded (see
    http://support.microsoft.com/kb/837115 ).
    In the meantime, I recommend 'uphclean' and the 'delprof.exe' found in the Resource Kit utilities.
    HTH,
    Bill
    Can we combine FileSystemObject and deleting Reg Keys?
    ¯\_(ツ)_/¯

  • Looking for a script exporting pdf files after changing PMS to CMYK colors

    Hello every one,
    I have lot of files which needs to change in InDesign
    1. PMS colors (if any) to CMYK
    2. Exportas a specific color profile (GWG_GenericCMYK)
    To do this I have file names, sizes information in excel sheet. Can I assume with scripts…?
    New file sizes, name creation      will be using of excel sheet,
    Save      the file (location I will choose manually sounds that script needs to      pause here)
    Placing in center of the      document than
    Color swatches changes PMS to     CMYK (if any other wise leave it as it is),  at the end
    Exports file as a pdf with     already defined pdf settings (GWG_GenericCMYK).
    Can some one make my dream come true ...???
    If anyone solve this situation it’s saves my towns of time. Please help me any tremendous scripter ….
    I don’t have any knowledge in scripting... Please see for example excel sheet. sorry for image i tryed to upload excel file some error..!!!
    Thanks in Advance
    Best Regards,
    Siva

    Hello every one,
    If whole process is not possible through script..? Please let me know some solutions, reference links, are any suggestions, Please help me any one..!!!
    Regards,
    Siva

Maybe you are looking for

  • How can i get my text back after loading ios5

    How can I make my text come back after loading IOS 5

  • Bug in Oracle 9.2.0.1.0.

    I have found a bug in Oracle 9.2.0.1.0. Here is the bug analysis. Step 1: CREATE TABLE T1 ( ENO NUMBER, ENAME VARCHAR2(100)); Step 2: CREATE TABLE T2 (DNAME VARCHAR2(1000)); Step 3: INSERT INTO T1 VALUES (1,'KARTHIK'); Step 4: INSERINTO T2 VALUES ('V

  • Time Machine does not work after Lion Upgrade

    Hi all. I upgraded my iMac to Lion yesterday. I used to run Time Machine through my airport extreme to an external hdd. After the upgrade to Lion I'm unable to do this. When I try to setup Time Machine again, it is not possible to connect to the HDD

  • My itunes won't play my tv show that used to play?

    i am trying to watch season 5 of 90210 and it was working perfectly fine earlier today. but when my computer died and i turned it back on it said that it couldn't play it because it has to be played on a computer that supports HD or something like th

  • Iphoto library is gone!

    Hi!  I can't find my iphoto library anywhere on my computer or ED. I turned on Time Machine a few weeks ago in an attempt to back up files and things but it never actually backed anything up because there wasn't enough space available.  So, I googled