Need a simple script, I think.

I just created a document merged 500 + page [first time use datamerge - coolio] but now need to apply a color swatch in image in grayscale (a QR code) on each page. I could convert all the K in CMYK files, triple the file size of graphics 2700 and undergo an inelegant solution OR ask someone to help me with a simple applescript to do the same thing... unless there is another way to do that I did not understand.

I have NO experience of script and don't have time to learn it for this project. Anyone feeling the generosity of the season and willing to point me in the right lane?

Thanks in advance.

Jessica

[CS5 on Mac 10.5.8]

Here you are.

In the first line, you should put your name instead of 'Gray' to swatch. Copy, and then save it as plain text (if you are using TextEdit on Mac, select present first in the Format menu) in your folder users Script as "MakeAllGraphicsGrey.jsx". Double click to run and sit.

var swatch = app.activeDocument.swatches.item("Gray");
for (var i=0; i

Here's a before (left) and after (right) photo to show this works axually.

(Jongware posing with his new tattoo).

Tags: InDesign

Similar Questions

  • Of script Lady no need a simple script to work with labels...

    I have everyone! I know that I've already should I have learned Javascript. God knows I've really tried, but I couldn't cope with the work. Again, I must ask my dear Scripting Guys to fix this for me!

    It goes like this: I'm going to start publication of some books that have a lot of points with different tabs. There are many it is really difficult to solve problems with paragraph styles.

    What I need is a script that could mimic the operation of the two buttons that are available in Word format

    IncreaseDecrease.PNG(Increase and decrease the indent level of the paragraph [to the default tab next or previous already established in this paragraph style]).

    Can someone help me?

    Thank you in advance,

    Maria

    Maybe I was not quite clear. Since tabs could not be repeated, making the general script enough to handle the case of say, the tabs set at 10mm, 25mm, 31mm, 46mm and 70mm might be a bit difficult. But if we can assume that they all go to repeated intervals (10mm, 20mm, 30mm, 40mm, 50mm, 60mm, 70mm), it is much easier.

    Two scripts. Save it as increaseIndent.jsx:

    app.selection[0].leftIndent+=app.selection[0].tabStops[0].position;
    

    And then decreaseIndent.jsx:

    app.selection[0].leftIndent-=app.selection[0].tabStops[0].position;
    

    Simply, it increases or decreases the leftIndent of the current selection by the position of the first tab stop of the same selection.

  • Need help simple script

    Hi guys,.

    Need some help im working on a series of steamers one very simple but as im only learn Powershell atm I hit an obstacle. I would like to get a list of the strategy of starting for all my guests so far I

    Get-VMHost | Get-VMHostStartPolicy | FT - autosize

    That works very well but does not give me the friendly name of the host, I guess I can get probably that but don't know how.

    Thanks in advance

    www.virtualisedreality.com | www.Twitter.com/virtualisedreal

    Here's a way to do it, I'm sure there is an easier way, that I just can't think of it right now!

    $MyObj = @()
    Foreach ($vmhost in Get-VMHost){
         $StartupPolicy = Get-VMHostStartPolicy -Vmhost $vmhost
         $Details = "" | Select VMHost, Enabled, StartDelay, StopAction, StopDelay, WaitForHeartbeat
         $Details.VMHost = $vmhost.Name
         $Details.Enabled = $StartupPolicy.Enabled
         $Details.StartDelay = $StartupPolicy.StartDelay
         $Details.StopAction = $StartupPolicy.StopAction
         $Details.StopDelay = $StartupPolicy.StopDelay
         $Details.WaitForHeartbeat = $StartupPolicy.WaitForHeartbeat
         $MyObj += $Details
    }
    $MyObj
    

    If you found this information useful, please consider the allocation of points for correct or helpful.

    Alan Renouf

    http://Virtu-al.NET

  • Simple scripts: on the thumb (45) frame to the first frame... ??

    I'm doing a simple script and I'll have a PET huge brain.

    When I get to coach the 45 I want the playhead back to frame 1.  I have the code below, but I'm getting errors.  Can someone point my head in the right direction?

    <><><>

    {onFrame (45)
    this.gotoAndPlay (1);
    }

    <><><>

    An error that says that "expected semicolon before or after the first brace...

    second possible mistake is ' call to onFrame possible undefined method... ".

    Need help.

    If this is the first scene, in the last picture (45) simply by putting...

    gotoAndPlay (1);

    should work.

    If it is not the first scene, then you the first image of the label and use the label instead of the chassis number...

    gotoAndPlay ("firstFrameLabel");

  • I need the simple installation mode of firefox 5.0 on my eeepc 900 (default Xandros Linux) - I used to install 3.0, but is now obsolete

    the ed-meister has provided an excellent simple mode for the installation of version 3.0 of firefox and I did it correctly, but then when I looked at the edits, he said that I need to upgrade to firefox 5.0 and I need the simple mode for linux and I don't know what to type in the terminal/console

    Thanks for your help if necessary

    Check with the EeeUser forum to see what they have to say.

    http://Forum.EeeUser.com/

    I don't see Installing a browser 2011 in a 2007 operating system. I replaced Xandros with Easy Peasy 1.6 some time ago, 3.0 and 3.5 were too darn slow on Xandros even with the GTK update. A 900MHx processor will never be a speed demon, but you I have to give him a chance with a better than Xandros OS.
    Personally, I stay with 3.6.x until the end of the support. I don't see the need to upgrade to the latest version of Firefox now, especially on Linux.

    http://www.geteasypeasy.com/

  • I need a simple solution to the cursor jumping around.

    I need ' a simple fixto the cursor jumping around.   I tried a system restore, but it does not work.   I'm not a programmer, so it must be simple, please help.    I'm about to throw this Windows OS Dell computer out the window.   Laughing out loud

    Hello

    1 does happen on all applications?
    2. you are using a desktop computer or a laptop?

    Method 1.
    If you use a laptop try disable the touchpad and check.

    Method 2.
    Step A.
    Check to see if the problem exists in Safe Mode, if the computer works as expected in mode without failure, then we can solve the problem in the clean boot state.

    See the article below for the procedure safe mode in Windows XP

    A description of the options to start in Windows XP Mode
    http://support.Microsoft.com/kb/315222

    Step B.
    You need to perform a clean boot to find the program that is causing and then disable or remove.

    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353/en-us

    Note: When you are finished troubleshooting, follow the steps as explained in the article to reset the computer to start as usual.

    I hope this helps.

  • need the simple way to set the computer back to factory settings, and already saved safe data

    need the simple way to set the computer back to factory settings, and already saved safe data

    Vista recovery media obtain and/or use the Partition Recovery Vista on your computer to the factory settings .

    There is no Vista free download legal available.

    Contact your computer manufacturer and ask them to send a recovery disk/s Vista set.

    Normally, they do this for a cost of $ small.

    In addition, ask them if you have a recovery Partition on your computer/laptop to restore it to factory settings.

    See if a manual provided with the computer or go to the manufacturer's website, email or you can call for information on how to make a recovery.

    Normally, you have to press F10 or F11 at startup to start the recovery process...

    Another way I've seen on some models is press F8 and go to a list of startup options, and launch a recovery of standards of plant with it, by selecting the repair option.

    Also ask them if it is possible to do the recovery disk/s for the recovery Partition in case of a system Crash or hard drive failure.

    They will tell you how to do this.

    Every computer manufacturer has their own way of making recovery disk/s.

    Or borrow a good Microsoft Vista DVD (not Dell, HP, etc).
    A good Vista DVD contains all versions of Vista.
    The product key determines which version of Vista is installed.

    There are 2 disks of Vista: one for 32-bit operating system, and one for 64-bit operating system.

    If install a cleaning is required with a good DVD of Vista (not HP, Dell recovery disks):

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu

    http://support.Microsoft.com/default.aspx/KB/918884

    MS advice on the conduct of clean install.

    http://www.theeldergeekvista.com/vista_clean_installation.htm

    A tutorial on the use of a clean install

    http://www.winsupersite.com/showcase/winvista_install_03.asp

    Super Guide Windows Vista Installation

    After installation > go to the website of the manufacturer of your computer/notebook > drivers and downloads Section > key in your model number > get latest Vista drivers for it > download/install them.

    Save all data, because it will be lost during a clean installation.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://support.Microsoft.com/default.aspx/KB/326246

    'How to replace Microsoft software or hardware, order service packs and upgrades, and replace product manuals'

    See you soon.

    Mick Murphy - Microsoft partner

  • Need help with script java folder level for silent registration with unique file name

    That's what I'm trying to do

    1. when a person completes the request on one of our computers in the office, there will be a button send at the bottom of the application.

    2 submit the application on is automatically stored on the local server with the file name determined by the fields name and surname on the application.

    example - John Doe Application.pdf

    Saved in the folder C:\Users\Station1\Desktop\FinishedApplication.jpgApplications

    3. This is the example of code I found, but I don't know how to enter which fields determine save name and where to save it to.

    http://thelivecycle.blogspot.de/2015/06/save-with-new-name-in-specified.html

    http://thelivecycle.blogspot.de/2015/06/save-with-new-name-in-specified.html http://thelivecycle.blogspot.com/2009/11/save-form-to-specific-directories-and.html

    Thank you!

    Lol this is the part that you need as a script to the folder level:

    var lcbSaveAs = app.trustedFunction (function (vDoc, vPath) {}

    app.beginPriv ();

    vDoc.saveAs ({cPath: vPath});

    app.endPriv ();

    });

    This is the code you use in your file:

    lcbSaveAs (, "/ C/users/specialisee1/Desktop/result /" + this.getField("FirstName").valueAsString + "" + this.getField("LastName").valueAsString + "Application.pdf");

    lcbSaveAs is the name of the function of trust.

    vDoc.saveAs is the Document object, call the saveAs method.

    I don't know what oDoc.SaveAs is, or where you got it.

  • Need a PowerShell script to...

    Hi, I need a PowerShell script to list all the virtual machine from the center of data-list for each virtual computer all drives and formats the disc and the disc type and a free column for comments.

    Move us the backup platforms and try to develop a plan of migration for all virtual machines

    See you soon

    Looks like you are using an older version of PowerCLI, the CapacityGB was introduced in one of the previous PowerCLI builds.

    Try to upgrade.

    If an upgrade is not possible, you can do

    Get-Datacenter -Name MyDC | Get-VM | Sort-Object -Property Name |Get-HardDisk | Select @{N="VM";E={$_.Parent.Name}},Name,@{N="CapacityGB";E={[int]($_.CapacityKB/1MB)}},@{N="Type";E={[string]::Join('/',($_.DiskType,$_.StorageFormat,$_.Persistence))}},@{N="Comment";E={' '*25}} |Export-Csv C:\HD-report.csv -NoTypeInformation -UseCulture
    

    It also sorts the VM on their Name property.

  • I'm trying to download a file from the active section of the creative cloud, but it is not letting me. It is saying I need a simple or full membership, which I do. I have the plan composition of the photographer. I made sure I'm connected, but he's still

    I'm trying to download a file from the active section of the creative cloud, but it is not letting me. It is saying I need a simple or full membership, which I do. I have the plan composition of the photographer. I made sure I'm connected, but it is still trying to put me on a plan, which I have. Help please!

    Hashim, see the FAQ section on: CC help | Creative market Cloud

  • Help with 2 simple scripts

    I am looking for 2 very simple scripts, we're for a specific cluster 1, I want to list all the VMS that have 4 GB of memory or more.

    Then a 2nd script for a specific cluster1, want to list VM which do not have the VM tools installed or are out of date and select the name, the tool vmware status and memory.

    Can someone help please

    Here is a line that I tried on a single host... and must work if you connect on a VC as well... people it will list all virtual machines with more than 4 GB of memory:

    Get - VM | Where-Object {$_.} MemoryMB - gt 4096}

    If you want just the name and memory, then:

    Get - VM | Where-Object {$_.} MemoryMB - gt 4096} | Select Name, MemoryMB

    For the other for the VMtools...

    Get-VM | Get-View | Select-Object @{N="Name";E={$_.Name}},@{Name="ToolsStatus";E={$_.Guest.ToolsStatus}}
    

    Concerning

  • Need a powershell script to create a local user on esx given the esx server list box

    Hello

    I need a powershell script to create a local user on esx in a given list entry of esx servers through a csv spreadsheet. The script should ask me the user name and the password for the user name to be created on the given list of esx servers.

    Thanks in advance!

    Just noticed that there is a lack of vacuum after the - password parameter.

    It should be

    $userName = Read-Host "Username"
    $password = Read-Host "Password" -AsSecureString:$true
    Import-Csv "C:\vmhosts.csv" | %{
         Connect-VIServer -Server $_.Hostname -Credential (Get-Credential)
         New-VMHostAccount  -Id $userName -Password $password -UserAccount:$true -GrantShellAccess:$true -Confirm:$false
         Disconnect-VIServer -Confirm:$false
    }
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Need a powershell script to extract VM-&gt; IP-&gt;-&gt;-&gt; mapping vSwitch portgroup vNIC

    Hello

    I need a powershell script to extract the following information for all the VMS in vcenter.

    vm_name | ESX_name | Cluster_name | vm_IP_address | vNIC_name | PortGroup | vSwitch

    Please note that multiple virtual machines have several vNIC where vNIC is connected to various exchanges

    Here you go

    $report = @()
    Get-VM | %{
         $vm = $_
         $_ | Get-Vmguest | %{
              $guest = $_
              if($_.Nics){
                   $i = 0
                   $_.Nics | %{
                        $row = "" | Select Name, Powerstate, Host, Cluster, "IP address","Nic Name",Portgroup,vSwitch
                        $row.Name = $vm.Name
                        $row.Powerstate = $vm.PowerState
                        $row.Host = $vm.Host.Name
                        $row.Cluster = ($vm.Host | Get-Cluster).Name
                        $row."IP address" = $guest.IPAddress[$i]
                        $row."NIC Name" = $vm.NetworkAdapters[$i].Name
                        $row.Portgroup = $guest.Nics[$i].NetworkName
                        $row.vSwitch = (Get-VirtualPortGroup -Name $guest.Nics[$i].NetworkName -VM $vm).VirtualSwitchName
                        $report += $row
                        $i++
                   }
              }
              else{
                   $row = "" | Select Name, Host, Cluster, "IP addr","Nic Name",Portgroup,vSwitch
                   $row.Name = $vm.Name
                   $row.Powerstate = $vm.PowerState
                   $row.Host = $vm.Host
                   $row.Cluster = ($vm.Host | Get-Cluster).Name
                   $row."IP address" = "na"
                   $row."NIC Name" = "na"
                   $row.Portgroup = "na"
                   $row.vSwitch = "na"
                   $report += $row
    
              }
         }
    }
    $report
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Need a powershell script to find the PID of VM in an ESX box

    Hello

    I need a powershell script to list out the PID of all virtual machines running in a box of ESX.

    The script should prompt for ESX box name and root password.

    Expected results:

    The virtual computer name.  NEST

    Thanks in advance!

    My mistake, the point (any character) is to eat the rest of the message.

    Try again with

    $mask = [regex]"vmid=(\d+)\s+([\w-]+)"
    

    He accepts what regex esteem alphabetic characters or the hyphen (-).

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Need a powershell script to gather information from ESX host

    Hello

    I need a powershell script to collect the below given information host ESX to the Virtual Center. My VC:2.5 of the environment, the ESX hosts: 2.5, 3, 3.5

    At present I have individual powershell scripts of a steamer to get these details. Would be more useful to have a single script. I tried VESI, but does not receive the report in the below in the format.

    | ESX host name Version | Number | construction | manufacturer Model | Processor type | Number of physical CPUS | Number of cores | VMotion service IP Console IP | | County HBA | Physical NETWORK interface cards count

    Thanks in advance!

    So I'm at my wits end here.

    It works for me and Robert also confirmed that it worked for him.

    Although I don't see why this would solve the problem, you could finally try an upgrade to PowerShell v2 RTM.

    ____________

    Blog: LucD notes

    Twitter: lucd22

Maybe you are looking for