Script to export the names of swatch as a text delimited by tabs?

Howdy!

I run the screen printing Department at a large shipping company, and as we grow, we are trying to integrate & computerize our workflow. 95% of the creations that we have on file are built like spot color in Illustrator.

We are trying to automate some functions here at the Department, producing of the screen, as a computerized inventory of the screens at hand. When we have a screen of images, you will get a barcode label and then we can * beep * in the inventory. When get us a screen we can * beep * out of the inventory. My thought is that it would be a metric ton faster than to wander around the store looking for screens when clients placed reorders.

To do this, I learned to generate a worksheet with the name of each color in the drawing in its own field of a spreadsheet, so that they can be used to fill our inventory system and are they assigned SKU.

I can do it manually, but it'll take some time. What I was hoping somehow without enthusiasm for a was a way to export the names of all shades spots used in a design in the form of text, if all goes well delimited by tabs so that it can be copy / pasted into a spreadsheet.

Am I crazy?

Chris, sorry the above is NO AppleScript that goes into app Apple's Script Editor. ExtendScript is, what to do to use it is caillet & in ExtendScript Toolkit. This should be installed with CS and is expected to be in you "Adobe Utilities" folder / utilities. Open this app make new document paste the above and save the file with what you want to call it with the file suffix/extension ".jsx. Quit Illustrator pop this file in the folder "Scripts" illustrators "Presets" relaunch Illustrator, he should be here. It requires in fact any Illustrator.

Let me know how you go.

Tags: Illustrator

Similar Questions

  • Change all the names of Swatch "Name with color value"?

    Y at - it a Javascript command change the nuances in a document to the "Name with color value" box in the Swatch Options? I know there are scripts to change the names of swatch based on the value of the color, but I'm looking for a script that applies this specific to all checkbox.

    Thanks in advance!

    This should do it:

    (function(){
      var doc=app.activeDocument,
      sw=doc.swatches.everyItem().getElements(),
      c;
      for(var i=3; i

    Thanks in advance!

    Not really as much as I know.

    The advantage of the svMotion is renamed it the files (.) VMX, VMDK,...) For you.

    The only alternative would be the command line. See Duncan Howto: renaming a virtual computer.

    With the help of the plink.exe tool which could possibly be scripted.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Need a little help. Script to export the single document for different types of files.

    Hey guys, I'm new to scripting. have looked everywhere but cannot find an answer to this, I'm sure it's pretty simple


    At work we export logos all the time in a few different formats for the clients.
    I looked in the script as a way to automate the process.

    So far, I thought a little script to export my Illustrator formats document... now I need to be able to export this document even outside as a res low and high PNG, low and high res JPEG, EPS, PDF and TIFF etc.
    I have scripts to do all these separately but just need to know how to put it all in a single script I can do all at once

    Here is an example of my two different scripts to export PNG. I just need to know how string together so I can add all of the formats without breaking it.

    function savePNG() {}
    var destFolder = Folder.selectDialog ("select the folder to export the PNG files to :');")
    If {(destFolder)
    If (app.documents.length > 0) {}
    var Nomdoc = app.activeDocument.name.match(/^.*[^.ai]/i);
    var destFile = new file (destFolder + ' /' + Nomdoc + "-HR.png");
    if(destFile == null) {return ;}
    var doc = app.activeDocument;
    var artRect = doc.artboards [0] .artboardRect;
    var exportOptions = new ImageCaptureOptions;
    exportOptions.resolution = 300;
    exportOptions.antiAliasing = true;
    exportOptions.transparency = true;
    doc.imageCapture (destFile, artRect, exportOptions);
    }
    }
    }
    savePNG();

    and here is the version low resolution

    function savePNG() {}
    var destFolder = Folder.selectDialog ("select the folder to export the PNG files to :');")
    If {(destFolder)
    If (app.documents.length > 0) {}
    var Nomdoc = app.activeDocument.name.match(/^.*[^.ai]/i);
    var destFile = new file (destFolder + ' /' + Nomdoc + "-LR.png");
    if(destFile == null) {return ;}
    var doc = app.activeDocument;
    var artRect = doc.artboards [0] .artboardRect;
    var exportOptions = new ImageCaptureOptions;
    exportOptions.resolution = 72;
    exportOptions.antiAliasing = true;
    exportOptions.transparency = true;
    doc.imageCapture (destFile, artRect, exportOptions);
    }
    }
    }
    savePNG();

    Thanks for any advice you can give!
    Eli

    Oh, you want to perform two functions, one after another at the same time? then just name with different names and perform one function after another, if all files will be saved in the same folder, the argument selectDialog move method on each of your functions to don't do only once.

    function savePNG_HR(){
        var destFolder = Folder.selectDialog('Select the folder to export the PNG files to:');
        if (destFolder) {
            if(app.documents.length > 0){
                var docName = app.activeDocument.name.match(/^.*[^.ai]/i);
                var destFile = new File(destFolder + '/' + docName + " - HR.png");
                if(destFile == null){return;}
                var doc = app.activeDocument;
                var artRect = doc.artboards[0].artboardRect;
                var exportOptions = new ImageCaptureOptions;
                exportOptions.resolution = 300;
                exportOptions.antiAliasing = true;
                exportOptions.transparency = true;
                doc.imageCapture(destFile, artRect, exportOptions);
            }
        }
    }
    
    function savePNG_LR(){
        var destFolder = Folder.selectDialog('Select the folder to export the PNG files to:');
        if (destFolder) {
            if(app.documents.length > 0){
                var docName = app.activeDocument.name.match(/^.*[^.ai]/i);
                var destFile = new File(destFolder + '/' + docName + " - LR.png");
                if(destFile == null){return;}
                var doc = app.activeDocument;
                var artRect = doc.artboards[0].artboardRect;
                var exportOptions = new ImageCaptureOptions;
                exportOptions.resolution = 72;
                exportOptions.antiAliasing = true;
                exportOptions.transparency = true;
                doc.imageCapture(destFile, artRect, exportOptions);
            }
        }
    }
    savePNG_HR();
    savePNG_LR();
    
  • Script to export the virtual disk information in a specific format

    Hi all

    First too all the Scripting Guys who I borrowed the code here, thank you!

    Now, I was able to get all the information I want vcenter but I have problems with two of the scripts I wrote.  It is with regard to obtaining information on the virtual disks associated with all virtual machines in the environment.

    I was able to export the data, but I get a line by VM that does not work for the way in which we want to use the data.

    What I am looking for is a csv export with one line per virtual machine that looks like:

    VM number 1, hard disk number 1 name number 1 datastore, path of vmdk number 1 hd, hd number 1 capactity, number 1 hd, hard drive controller number 2 name,... up to 7

    name of number 2 VM...

    Thank you!

    Alec

    OK, I see what happened.

    The 2nd block is to create empty properties in the object.

    The value should be $null like this

    $report = @()foreach($vm in Get-VM){  $row = New-Object PSObject -Property @{Name = $vm.Name}  $i = 1  Get-HardDisk -VM $vm | %{    $row | Add-Member -Name "Disk #$($i) Name" -Value $_.Name -MemberType NoteProperty    $row | Add-Member -Name "Disk #$($i)" -Value $_.FileName.Split("/")[1] -MemberType NoteProperty    $row | Add-Member -Name "Disk$($i)path" -Value $_.FileName -MemberType NoteProperty    $row | Add-Member -Name "Disk$($i)Capacity(MB)" -Value ($_.CapacityGB*1024) -MemberType NoteProperty    $row | Add-Member -Name "Disk$($i)Controller" -Value ($_ | Get-ScsiController).Name -MemberType NoteProperty    $row | Add-Member -Name "Disk$($i)Datastore" -Value $_.FileName.Split(']')[0].TrimStart('[') -MemberType NoteProperty    $i++  }  while($i -le 8){    $row | Add-Member -Name "Disk #$($i) Name" -Value $null -MemberType NoteProperty    $row | Add-Member -Name "Disk #$($i)" -Value $null -MemberType NoteProperty    $row | Add-Member -Name "Disk$($i)path" -Value $null -MemberType NoteProperty    $row | Add-Member -Name "Disk$($i)Capacity(MB)" -Value $null -MemberType NoteProperty    $row | Add-Member -Name "Disk$($i)Controller" -Value $null -MemberType NoteProperty    $row | Add-Member -Name "Disk$($i)Datastore" -Value $null -MemberType NoteProperty    $i++  }  $report += $row}
    
    $report  | Export-Csv -path virtual_disks2.csv -notype
    
  • Export the names of each article to an Excel spread sheet or any other form button

    Is there a way to export a list of all the button names in each section of an Excel sheet to spread or another form? If anyone knows of a script that does that it would work to.

    We do not want to have to go to each button in each article and each copy and past to an Excel doc.

    Try the forum script InDesign. Even if you can get the names in an InDesign table, which could easily be copy and paste to Excel.

    Bob

  • Use scripts to change the name of the tab

    Hi all

    I'm trying to use scripts to add tabs to a tab control in an existing VI.  I am able to add new tabs easily enough, but I can't understand how to change the name of each tab when they are added.  Each name is extracted a TDMS file using a loop for.

    I looked through the existing discussion forums, and there are a few old messages that indicate I should look for the 'independent Label property', and that I should put it to allow me to change the caption of the tab.  There is always an explanation of this property in the help files, but I am unable to find my path to it in the current schema.

    Assuming that this property still exists in my version (2012), could someone tell me the correct sequence of references and property nodes to access this property?  Right now I use the class "TabControl".  If this property is obsolete, can someone let me know if there is a new method to achieve this?  Thank you.

    GSinMN

    After you have added the page, download the Pages property of the index of the newly added page, tab control, use the PageLabel of this page for the label.  It would be cool if the Add Page method returns the reference to the new page.

  • script to export the vm

    We have two servers esxi and vcenter with essentials licenses.

    Is there a way to export the virtual machines on a windows share servers every night with a script?

    http://communities.VMware.com/docs/doc-8760

    ghettoVCB

  • Script to get the name of VMhost among a list of VM?

    Hi people,

    Can anyone here help me scripting by getting the ESXi host name or $vmhost name in the list of the VM?

    Thank you.

    You mean this

    Get-VM | Select Name,@{N="Host";E={$_.Host.Name}}
    
  • Script to export the VC roles/Permissions/objects

    I need a script to the list of all the roles in VC, users/groups assigned to the role, and the role object is assigned to. I want only the list of objects that have a role assigned to them. I would also like to be able to export this info into a csv file if possible. If anyone has a pre-made script that can do it, it would be very useful. I was looking for some sort of get-permission or the cmdlet get-vmpermission to achieve this, but cant seem to find anything. Any help would be great.

    Thank you

    Jason

    Get permissions is a filter I wrote, see the script in the use of role identifier.

    Again not in this thread.

    The line example I gave was just a new version of the last line of the script in the use of role ID to show how to export the result to a CSV file.

    The parameter - Useculture is new in PowerShell v2. Sorry should have left this.

    I use it because it solves the problem we had in PS v1 with the separator.

    By default, the separator is a comma, but in our locale, it is defined as the semicolon.

    Without the parameter - Useculture the Export-Csv cmdlet always uses a comma, with this setting, need the separator defined in the regional settings.

    Your last question, Yes, you can limit the scope of the Get-Onventory cmdlet with the - Location parameter.

    If, for example, only wanted a report for a specific data center, you can do

    Get-Inventory -Location (Get-Datacenter ) | Get-Permissions | Export-Csv -Path "C:\permissions.csv" -NoTypeInformation
    
  • Script to change the name of the layer to fill model name Please HELP

    I have a guy here for emergency! I have more than 2000 model files in a library. These models are all labeled with the same names I want my layers to have. I'll make a new layer for each design for a total of 2000 layers. layers of 2000 is way more layers, then I want to name by hand, so if I can run a script to give the layers the same name as the model they are packed with it would help enormously.

    Help, please!

    Thank you

    I agree with Christoph, it would be easier to create all layers in IE:-

    #target photoshop
    main();
    function main(){
    var file = File.openDialog("Please select Pat file");
    if(file == null) return;
    if(!documents.length){
       var doc = app.documents.add(UnitValue(300, "px"), UnitValue(300, "px"),72,"Patterns");
    }
      file.open("r");
      file.encoding = 'BINARY';
      var str = file.read();
      file.close();
      var patterns=[];
      //Thanks to X for the regex
      var re = /(\x00\w|\x00\d)(\x00\-|\x00\w|\x00\s|\x00\d)+\x00\x00\$[-a-z\d]+/g;
      var parts = str.match(re);
      for (var i = 0; i < parts.length; i++) {
        var p = parts[i];
        var sp = p.replace(/\x00/g, '').split('$');
         patterns.push([[sp[0]], [sp[1]]]);
          }
      //load pattern file
      app.load(file);
    for(var a in patterns){
    fillPattern(patterns[a][0].toString(),patterns[a][1].toString(),100);
        }
    };
    function fillPattern(name, id, opacity) {
        activeDocument.artLayers.add();
        activeDocument.activeLayer.name = name;
        var desc6 = new ActionDescriptor();
        desc6.putEnumerated( charIDToTypeID('Usng'), charIDToTypeID('FlCn'), charIDToTypeID('Ptrn') );
            var desc7 = new ActionDescriptor();
            desc7.putString( charIDToTypeID('Nm  '), name );
            desc7.putString( charIDToTypeID('Idnt'), id);
        desc6.putObject( charIDToTypeID('Ptrn'), charIDToTypeID('Ptrn'), desc7 );
        desc6.putUnitDouble( charIDToTypeID('Opct'), charIDToTypeID('#Prc'), opacity );
        desc6.putEnumerated( charIDToTypeID('Md  '), charIDToTypeID('BlnM'), charIDToTypeID('Nrml') );
        try{
        executeAction( charIDToTypeID('Fl  '), desc6, DialogModes.NO );
        activeDocument.activeLayer.visible=false;
        }catch(e){app.activeDocument.activeLayer.remove();}
    };
    
  • Script to rename the names of information link

    I'm working on the conversion of a catalogue of old customers from Quark to Indesign.  I use Indesign CS4 on Windows Vista. I used Markzware Q2ID to convert indesign catalog with too many problems.  But I ran into a big problems with the images.  They will be automatically re-issued.  After digging around, I found the problem.  For some reason any all Image names also include the path structure.

    For example

    Link Info

    Name: BDA - 12:Users:graeme:Desktop:FSIP back-up: _Collected:02405 PESA AftMkt EAST: photos: M587524. EPS

    Path: BDA - 12:Users:graeme:Desktop:FSIP back-up: _Collected:02405 PESA AftMkt EAST: photos: M587524. EPS

    Luckly that all names have the same problem.  So I hope find or write a script that can simply go through the indesign document and find/replace all the names link to remove "BDA - 12:Users:graeme:Desktop:FSIP back-up: _Collected:02405 PESA AftMkt EAST: photos:

    I know it is a very simple problem, but it's my first real attempt to script something in Adobe.  Anyone have any good ideas or tips on how I could do this?

    Thank you

    VIC Bushfield

    Victor,

    The conversion program totally corrupt links in your document: myLink.filePath is just empty string, myLink.name, this is what should have been myLink.filePath (this is info from ESTK).

    Here is a new version of the script - it rebuilt to the files located in the folder NewLinks on the desktop. Change this line

    var myNewPath = '~/Desktop/NewLinks/' + MyName;

    to the location of your links.

    WARNING - I tested it on Mac, because do not have a copy of CS4 for Windows.

    Kasyan

    //----------------------------------------

    indesign #target

    If (app.documents.length == 0) {}
    Err ("no document open. Please open a document and try again. ", true);
    }

    myDoc var = app.activeDocument;
    myLinks var = myDoc.links;
    var myCounter = 0;

    If (myLinks.length == 0) {}
    Err ("this document contains no links.", true);
    }

    for (i = myLinks.length - 1; I > = 0; i--) {}
    myLink var = myLinks [i];
    var myArr = myLink.name.split(":")
    var myArr = myName [myArr.length - 1];
    var myNewPath = '~/Desktop/NewLinks/' + MyName;
    var myNewFile = new queue (myNewPath);
    If {(myNewFile.exists)
    myLink.relink (myNewFile);
    myCounter ++;
    }
    }
       
    If (myCounter == 1) {}
    Alert ("a file has been relinked.", "Completed");
    }
    ElseIf (myCounter > 1) {}
    alert (myCounter + "files were relinked.", "completed");
    }
    else {}
    Alert ("Nothing has been relinked.", "completed");
    }

    function err (e, icon) {}
    Alert (e, "Update path names Script", icon);
    Exit();
    }

  • Basic conditional script based on the number of lines in a text layer?

    Just received help here to write a conditional script by using the font size of a text layer. Thank you all for this.

    The next hurdle is a conditional script using the number of lines in a text layer in the differential. Far as I can tell it not the layer details which specify the number of lines. Just '\r' for a return in the idTxt descriptor. Nothing seems to stand for a soft return as far as I can tell. I'll probably have to be able to count the lines with soft and hard returns.

    Any thoughts?

    I was playing around with this a bit and here is a small script to determine the number of rows. This is based on the self in the head, that I calculated to environ.108 times the size of the font.

    #target photoshop
    app.preferences.rulerUnits = Units.POINTS;
    var doc = activeDocument
    var tL = doc.activeLayer
    var h = tL.bounds[3]-tL.bounds[1]
    var per = ((h/5)-(tL.textItem.size))/tL.textItem.size
    var num = h/(tL.textItem.size *1.108)
    
    alert(Math.round( num))
    

Maybe you are looking for

  • Yahoo search in Safari engine even if Google is selected

    Safari uses the Yahoo search engine in spite of the fact that Google is selected in the preferences. It is a problem a couple of years and the solutions were incredibly complex and one I don't know they would be still applicable. OS X is El Capitan 1

  • Transfer of purchases of old Apple ID to new Apple ID

    Hi all I recently created a new Apple ID and would like to transfer my AppStore and iTunes purchases of old Apple ID. How can I achieve this, or is it possible? The two Apple ID are very different and I tried the update of the old ID to the new ID wi

  • I can't delete a folder: path too long

    I have a deep folder structure and can not remove it.  Is there a tool that I could use?  I can't believe that Windows XP doesn't have a tool or a command to do this.

  • How to restore the toolbar at the bottom of xp home

    just lost the background toolbar for xp family I have the nvidia video card that's all what I can offer an explanation of the problem

  • The upgrade of Cisco 1600 access points

    A customer has Cisco 1600 12 access point and they want to add 3 access points. These access points are autonomous access points and the customer is tired to make individual changes by access points.  I suggested that the new access point be base con