Illy CS3 Automating a Script

This probably sounds redundant
over and over again , automating a script, but is there a way of assign
ing a keyboard shortcut
or run the
script in an action?  I use mucho a script written and generously shared by JET to joinnearest points.  It's a pain to have to click on file and then scripts and then select the script each time.   I would like to eliminate 2 clicks (or mashes as they say in the southern states).  Is there a way to do this within the script (adding a lline)?
Guidance will be appreciated.

This Action-Script bug has been present for several versions, at least
Correct. I have been complaining about this bug for four versions now.
It has become my practice to do this:
I keep an Action defined in my Actions palette named JET_CurrentScript. When it becomes clear to me that I will be repeatedly using a script in a work session, I go ahead and use InsertMenuItem to insert the step in that Action.
This is not a fix or even a workaround. It just lessens the tedium in certain circumstances. It becomes just as tedious, of course, if you have to do that for multiple frequently-needed scripts with every launch (you know--like having to reset your palette settings in Swatches, Doc Info, etc.)
Illustrator's script access interface--like too much in Illustrator--is half-baked. Sloppy. Rushed-to-market. Compare to InDesign's Scripts palette.
Now that ScriptUI provides for creation of floating dialogs (and supposedly modeless palettes--something else that's quite problematic with Illustrator's scripting implementation), one can combine several scripts into one dialog to handle multiple user inputs. I may get around to doing that with closely-related groups of my scripts, but am currently just getting acquainted with the rather tedious ScriptUI model.
There are ways to make a script run when the program is launched. So it may be conceivable to devise a startup script that would launch a script containing such a multi-purpose palette. But I haven't monkeyed around with that yet, because it would be dependent upon the afore-mentioned modeless dialog working correctly--you wouldn't want a modal dialog to appear whenever you launch the program.
I'm certainly no advanced Javascripter; I'm a self-motivated, self-trained "student" and "experimenter" when the mood strikes.
I'm gratified, by the way, that some of you seem to fiind my Join scripts handy. I consider the functionality indespensible in my own work, which is why I hacked them out. But it is absolutely absurd that one has to resort to custom scripting to do something that should so obvously be a standard function in the program.
JET

Similar Messages

  • Automated Unix Script For Registering Artifacts In OER

    Hi,
    i want to create automated unix script which will register the artifacts automatically in Oracle Enterprise Repository (OER)
    is it possible to automatically harvest the artifacts in OER.
    please help
    regards,
    yshintre

    Some of what you want is possible. Take a look at the Count Tool in CS3/4. It may only be available in the Extended versions. That provides a
    reasonable interface for marking items in a image like you are wanting to do with cells. Take a look at that and see what kind of manual process
    you can get worked out.
    However, to get the workflow you want (or anything close to it) would require more than a little code.

  • Naming conventions to store automation testing scripts

    Hi,
    Can anyone provide the solution for Naming conventions to store automation testing scripts in oracle application testing suite?
    Regards,
    Sairam

    Hi Sairam
    There are no naming conventions you can call them anything you like.
    Regards
    Alex

  • CS3 automated gallery - Flash  Player 10 detection issue

    I have been searching for answers to this and found nothing. Anyone know how to solve the FP 10 detection issue with the PS CS3 automated flash galleries. Right now it will not detect FP 10 and thinks there is no player. I know there are changes to detection methods but, I'm not much of a programmer and I've tried to implement SWFObject but, no luck. Any enlightenment would be appreciated. Save me re-creating please! I'd rather not have to upgrade my software.

    Hi,
    I am having the same problem... did you have any luck fixing this issue?
    Any help would be awesome.
    Thanks.

  • I have an iMac and a NAS installed, I've made an automator based script to mount the NAS volumes, will i have to rewrite when moving to Lion?

    I have an iMac and a NAS installed, I've made an automator based script to mount the NAS volumes, will i have to rewrite when moving to Lion?

    Hi Tony,
    Long shot, but...
    Open Audio Midi Setup in Applications>Utilities, see the input & output options & KHz setting there, some things will change it for their own use, then not set it back.

  • Automator shell script won't run

    Hi,
    I'm putting together a little Automator app that opens whenever I double-click on an .exe file and opens that file with wine. So far, however, I've had little luck. I've created a shell script automator app with the following script:
    for f in "$@"
    do
              /usr/local/bin/wine "$f" &
    done
    Outside of Automator the script works just fine. However, as an Automator app it doesn't work at all; nothing happens, even though Automator tells me that that the workflow was successfully completely. What am I doing wrong?
    Thanks,
    Alex

    Automator uses /bin/bash as the shell.
    Running your script interactive has a different environment from running under Automator.  For one thing, stdin/stdout/stderr are pointing to a tty (actually a pseudo device /dev/pty).  Perhaps this is affecting how Wine us behaving.
    Other issues might be where your current working directory is located, or some environment variable (such as PATH) that is not the same under Automator that exists when running interactively.
    You might try capturing things like
    ( printenv
      pwd
      id -a
      echo "\$# $#"
    ) >/tmp/automator.environment

  • [AS][CS3] mathtype replace script

    Hi, I edited the mathtype importscript to work better with the selection method.
    In CS2 it was working fine, in CS3 not any more of course after I converted my document to the new version and wanted to replace the tect to inline graphics.
    Problem is off course the find function, it gives an error on «event K2 Find»
    I have read some topics but need some help on what I should alter, of course «event K2 Find» but is this the only line or should it be completely rewritten?
    Here is the script:
    Deleted some intro info or it's too long.
    -- get the source folder for the equations from the user and compile a list of the enclosed files
    set the sourceFolder to choose folder with prompt "Select the directory containing the equations:"
    set the fileList to list folder sourceFolder without invisibles
    -- step through each file in the list, search for a matching name tag in the active document, and
    -- replace with the file and move the baseline of the placed equation
    repeat with i from 1 to the number of items in the fileList
    set currentItem to item i of the fileList
    set currentFilePath to ((sourceFolder as string) & currentItem)
    -- test if the filename is not a folder and then place it
    if (info for (currentFilePath as alias)) is not folder then
    set searchstring to "<<" & currentItem & ">>"
    place_file(searchstring, currentFilePath, get_baseline(currentFilePath as alias))
    end if
    end repeat
    display dialog "Finished placing files from the folder " & (sourceFolder as string) & "."
    * place_file():
    on place_file(fileName, filePath, fileBaseline)
    tell application "Adobe InDesign CS3"
    -- test that a document is open
    if (count documents) > 0 then
    set myDocument to active document
    tell myDocument
    -- search for all references of the filename
    b «event K2 Find» story given «class for »:fileName
    set hitz to the result
    set lapz to the number of items of hitz
    if lapz > 0 then
    -- repeat for each reference to the file
    repeat until lapz = 0
    select item lapz of hitz
    -- get a reference to the selected text
    set myInsertionPoint to item lapz of hitz
    set myRef to myInsertionPoint
    tell item 1 of myRef
    set myInsertion to index of first character
    set myInsertion2 to index of second character
    set myStory to parent of first character
    -- delete the string at the reference point
    set contents to ""
    end tell
    -- place the file at the insertion point
    tell (insertion point myInsertion of myStory)
    place filePath
    end tell
    -- select the inline graphic
    select text from insertion point myInsertion to insertion point myInsertion2 of myStory
    set graphicLocation to object reference of selection
    set myGraphic to item 1 of all graphics of item 1 of graphicLocation
    set mySelection to parent of myGraphic
    -- move the graphic equivalent to the baseline for that inline graphic
    move mySelection by {"0pt", fileBaseline}
    set lapz to (lapz - 1)
    end repeat
    end if
    end tell
    end if
    end tell
    end place_file
    (********** get_baseline():***************)
    on get_baseline(myFile)
    set matchText to "%%Baseline: "
    set theBaseline to ""
    -- read in the EPS file
    open for access myFile
    set fileLines to read myFile as string using delimiter {return}
    close access myFile
    -- find the line with the baseline
    set lapz to the number of items in fileLines
    repeat until (lapz = 0) or theBaseline begins with the matchText
    set theBaseline to item lapz of fileLines
    set lapz to (lapz - 1)
    end repeat
    -- extract the baseline number
    set theBaseline to characters -2 thru -1 of theBaseline as string
    -- return the baseline number
    return theBaseline & "pt" as string
    end get_baseline

    Hi Shane, I have placed it like this and it works now, many thanx
    on place_file(fileName, filePath, fileBaseline)
    tell application "Adobe InDesign CS3"
    -- test that a document is open
    if (count documents) > 0 then
    set myDocument to active document
    set find text preferences to nothing
    set find what of find text preferences to fileName
    tell myDocument
    -- search for all references of the filename
    find text
    set hitz to the result
    set lapz to the number of items of hitz
    if lapz > 0 then
    -- repeat for each reference to the file

  • SWF problem in Dreamweaver CS3 and strange Script file

    Hi folks, I am using Dreamweaver CS3 and tried to upload a
    SWF file today. The SWF includes three buttons, one for video,
    another for audio and one for text. Before loading up to DW all
    three parts played fine. But when I uploaded to DW and my site, the
    video fails to play. A Script file, and another file downloaded I
    am not sure what I am supposed to do with this script file. The
    script file is called The audio and text part works fine, but the
    video will not play. I am not sure why this is, but when I uploaded
    the file to Dreamweaver there was a Script file called
    AC_RunActiveContent.js that automatically downloaded along with a
    file called .htaccess
    The other file is called called .htaccess
    I uploaded both files to my server, but that did not help the
    video play. I tried pasting the AC_RunActiveContent.js code into my
    page and uploading, but that did not help the video play either; I
    just got code at the bottom of my page.
    I have viewed the page in Mozilla, IE7 and Flock, but still I
    cannot play the video.
    Does anyone have any idea how to make the video play in
    Dreamweaver; what I am supposed to do with these two code files?
    For those interested in the AC_RunActiveContent.js code, I
    will post below. Please try to explain simply because I am not so
    tech savvy.
    I thank you all.
    Mary

    I have managed to fathom it out.

  • Help 'Exiting' after Automator Shell Script Execution

    Hello,
    I've recently installed and got running GCalDaemon (http://gcaldaemon.sourceforge.net/) which allows me to Synch Rainlendar <-> Google Calendar through iCal (You can also synch iCal <-> Google Calendar). I needed to start up a shell script/applescript after each startup/login in order for GCalDaemon to start the synching process each time and continue to do so at the timed intervals. I would do so by the following terminal code:
    cd /usr/local/sbin/GCALDaemon/bin
    ./standalone-start.sh
    I then tried automating this process and came across shell script execution through Automator. I did so and created a .app with the above mentioned code. This works and it starts up the necessary .sh file I need and the snyching works under StartUp. My concern is however, how do I exit terminal once the code has executed the necessary file? All I have in my .app is the above mentioned code for now. I just need it to exit terminal because on startup or after starting the program, I get this issue (See Attachment)
    This continues to run, so my guess is that I need to add code to exit terminal and allow the .app to close itself properly after doing so.
    Please guide me in the right direction.
    Picture Belows shows what happens when I run the Automator App. It continues to run until I quit out of the app manually (TheGCal programs works fine though). I feel I need to have app quit Terminal or fully end the process and quit out on it's own.
    Thanks
    <table style="width:auto;"><tr><td></td></tr><tr><td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From GCalDaemon</td></tr></table>

    i redirected the command output to /dev/null which is unix equivalent of a black hole and I also redirected error output to standard output in case the script produces any errors.
    also & at the end tells it to continue without waiting for the script to finish.
    Message was edited by: V.K.

  • Photoshop CS3 Repeat Action Script.

    I need an AppleScript for Photoshop CS3 that will run the selected Action on all layers within the selected Layer Group.
    I have a Layer Group of Graphics that I want to apply various effects, and distortions to. I record the action once, but then I have to manually select each layer and play the action. I would like a script that will play the selected action to every layer within the selected group.
    Any ideas?

    This is what I have so far:
    tell application "Adobe Photoshop CS3"
    tell current document
    set myActionSet to "" --Current Action Set
    set myAction to "" --Current Action
    set myLayerSet to "" --Current Layer Set
    set layerCount to layers of layer set myLayerSet
    repeat with i from 1 to the count of layerCount
    set current layer to layer i of layer set myLayerSet
    set the visible of layer i of layer set myLayerSet to true
    do action myAction from myActionSet
    set the visible of layer i of layer set myLayerSet to false
    end repeat
    end tell
    end tell
    I am having problems getting the first 3 variables to be what is currently selected/highlighted without manually typing them in before running the script.
    I am also getting errors if a layer within the layer set is empty.
    Any ideas?

  • Automated ESSCMD script for logout

    This might sound like a weird question but I would like to know if it is possible to write an automated script in ESSCMD that logs out a specific user after loging out? We have done some @XREF functions in our trial db and for some reason the db leaves several connections open after logout. I know it would be wise to fix the problem with the script that causes the open connections, but until we figure out how to do that I would like to examine other possibilities to fix the problem. The Essbase version is 6.1.Any info regarding this matter will be very much appreciated.

    Its default functions are things that users already do with the App. How this helps anyone is beyond me. The scripts appear to be suggestive in nature - just placeholders "for what the software could do". Yawn.
    I need real world solutions not placeholder scripts. I cant believe Apple doesnt supply a solution - its simply obnoxious to ask users who have 5-100 mail folders to go:
    1. select Mailbox
    2. select Mailbox menu
    3. choose Rebuild
    Guess Im going to have to sit down with Automator or Applescript, bummer....

  • Breaking into Automator/Apple script

    Hi,
    I am needing to make some automator scripts with QuickTime in mind. Is there a source of tutorials or books? Or is it just easier to find a "Automator Scripter?"
    Automator sounds just amazing, but where on earth do I start?
    thanks,

    The product page for Automator is a pretty good place to start. See the links on the side column under "Explore Automator" for some how-to's, website, and book recommendations.
    If you have specific questions you can post them here on the board. If time is a factor you can hire assistance for very little money. I'm on iChat at [email protected] which is also my email address if you'd like to talk more about that.

  • Diskpart automation and scripting SCCM

    Hello,
    i am using SCCM 2012 for windows 7/8 deployments, there are some desktops without system reserved volumes/partition and some desktop with system reserved volume.
    I want to use the diskpart script to delete only Windows volume instead of other volume. the script i have created is working fine for some desktop (with system reserved volume). if the system don't have SYSTEM Reserved volume it will delete the D drive
    also, so i need help on this automation
    select disk 0
    select partition 1
    delete partition override
    create partition primary size=100
    select partition 1
    format quick fs=ntfs override label="System Reserved" noerr
    assign letter=S
    active
    select disk 0
    select partition 2
    delete partition override
    create partition primary
    select partition 2
    format quick fs=ntfs override label="Windows" noerr
    assign letter=C
    exit
    thanks

    Hello Peter,
    In my environment the desktop are not standardized, each desktop have different configuration for disk, memory, etc.
    we want to format c: drive to reinstall OS and applications.
    Windows 7 with System-Reserved volume + C:\ (OS) + D:\ (Data volume)
    Windows 7 with C:\ (OS) + D:\ (Data volume)
    Windows XP with C:\ and D:\ (Data volume)
    so for option 2 and 3 each time i have to change the script for to delete partition 1 instead of partition 2.
    so can we have some powershell script : if the system-reserved volume is not found then delete volume 1
    if the system-reserved volume found delete volume 2
    thanks,

  • Make computer sleep using automator or script

    What I am trying to do is, I want to have an icon on my desktop which when pressed will put my computer to sleep and require me to enter a password to wake it. At all other times, when the computer goes to sleep, I don't want to need to enter a password to wake it. For example, if I close the screen ( its a MacBook Pro) and reopen it, then i shouldn't have to enter a password.
    Is this possible to do using apple script or automator?

    don't worry, I found a script to do this job. If anyone else is interested try this.
    http://www.macosxhints.com/article.php?story=20090212074725172&query=sleep

  • Trouble running automator shell script

    This is probably going to be an really simple fix, but I'm have trouble building an automator service that runs a bash shell script. All of the elements of the script work fine when plugged into shell, but for some reason the automator service is failing to run. The script calls ffmpeg to convert an audio file:
    for f in "$@"
    do
      fn="${f%%.*}"
      /Users/aa/Applications/ffmpeg/ffmpeg -i "$f" -acodec libmp3lame -q:a 7 -ar 8000 -ac 1 "$fn.mp3"
    done
    The script runs fine without the ffmpeg command, and the ffmpeg command runs fine in the terminal on its own. Where's the error coming from?
    Thanks!

    The first is what I'm getting from the bash terminal execution, the second from automator. I'm accenting the differences I see. Thanks for the help!
    ----bash----------------------------------------
    drwxr-xr-x@ 67 aa  staff  - 2278 Apr  6 07:42 .
      com.apple.progress.fractionCompleted  14
    0: group:everyone deny delete
    uid=501(aa) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81( _appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),398(c om.apple.access_screensharing),399(com.apple.access_ssh)
    0
    -bash
    TERM_PROGRAM=Apple_Terminal
    SHELL=/bin/bash
    TERM=xterm-256color
    TMPDIR=/var/folders/x9/y4r_w7gj4_j_3wkfxn6s6fqm0000gn/T/
    Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.oSzc5cau0v/Render
    TERM_PROGRAM_VERSION=343.6
    TERM_SESSION_ID=AF09D92C-2CB4-4069-A172-0DE12EB226BD
    USER=aa
    SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.RFhFIs94Ad/Listeners
    __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
    PATH=/Applications/anaconda/bin:/Applications/anaconda/bin:/Applications/anacond a/bin:/Users/aa/anaconda/bin:/Applications/anaconda/bin:/Applications/anaconda/b in:/Applications/anaconda/bin:/Applications/anaconda/bin:/Library/Frameworks/Pyt hon.framework/Versions/3.4/bin:/Applications/anaconda/bin:/Users/aa/anaconda/bin :/Applications/Anaconda/anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbi n:/opt/X11/bin:/usr/local/git/bin:/usr/local/MacGPG2/bin:/usr/texbin
    PWD=/Users/aa
    LANG=en_US.UTF-8
    XPC_FLAGS=0x0
    XPC_SERVICE_NAME=0
    SHLVL=1
    HOME=/Users/aa
    LOGNAME=aa
    DISPLAY=/private/tmp/com.apple.launchd.YewceoE69R/org.macosforge.xquartz:0
    _=/usr/bin/printenv
    ----automator----------------------------------------
    /Users/aa
    drwxr-xr-x@ 66 aa  staff  - 2244 Apr  6 07:42 .
      com.apple.progress.fractionCompleted  14
    0: group:everyone deny delete
    uid=501(aa) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81( _appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),398(c om.apple.access_screensharing),399(com.apple.access_ssh)
    0
    SHELL=/bin/bash
    TMPDIR=/var/folders/x9/y4r_w7gj4_j_3wkfxn6s6fqm0000gn/T/
    Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.oSzc5cau0v/Render
    USER=aa
    SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.RFhFIs94Ad/Listeners
    __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
    PATH=/usr/bin:/bin:/usr/sbin:/sbin
    PWD=/Users/aa
    XPC_FLAGS=0x0
    XPC_SERVICE_NAME=0
    SHLVL=1
    HOME=/Users/aa
    LOGNAME=aa
    DISPLAY=/private/tmp/com.apple.launchd.YewceoE69R/org.macosforge.xquartz:0
    _=/usr/bin/printenv

Maybe you are looking for