Any way to apply or modify Illustrator Effects or Graphic Styles in PathItems from a javascript scri

I see in the docs for Illustrator javascripting that "scripts cannot create new graphic styles" (lame, btw), and I can't find any member function or variable in the PathItem class that provides a link to any information about applied effects, graphic styles, etc..
e.g. from a PathItem object I can get the first fill color (in pathItem.fillColor) but I can't seem to find the second one anywhere (fillColor does not return an array). If my PathItem has a dropshadow or a glow effect, or has a graphic style attached to it, I can't seem to find any trace of it, even in the debugger's Data Browser. The class reference docs don't make any reference to any effects or filters at all.
Am I missing something obvious, or is it actually impossible to write a simple script that, say, adds a dropshadow to every selected item (without blowing away the current fill color)?
Ken

Yes, Actions is just AI's built-in macro recorder.
What's needed is for an Action to be able to reliably include the running of a script. (That's been broken for three versions now.) That would accomodate a range of other possibilities.
> do you know if there is a current effort or push to expose all the Illustrator functionality to scripts? Or is this something that would be easy to code with the Illustrator SDK?
I don't know what the direction of AI development is, other than increased bugginess and ever more problematic installers/updaters. ;-)
Have not yet messed with the SDK.
There is a range of things that the Javascript implementation doesn't touch (editing Mesh Points, for just one example). Some of it I can understand, because of the tediousness that would be involved in coding.
JET

Similar Messages

  • Any way to apply Twist effect twice in opposite directions?

    I am trying to draw a sun-like shape. I started with a star polygon and apply the Twist effect. That gets me pretty good arms on the sun, but I'd like for something a bit more flame-like, so I'd like to get the arms to now bend back in the opposite direction. Is there any way to use or modify the Twist effect so that I can apply it a second time but bend further out in the opposite direction? Or is there some other good way to get the rotation along all the arms that someone can suggest?

    One way is this. Start with a triangle and modify its anchor points as shown below.
    Take the Rotate tool and Copy Rotate that object around a common rotation centre.
    Add a circle.
    Select all and apply Pathfinder Unite. Change fill colour.

  • Is there any way of saving progress in a game/app when you remove it from the ipad to the cloud

    Is there any way of saving progress in a game/app when you remove it from the ipad to the cloud.
    Basically i have a 16gb ipad2 (big mistake) so space on the ipad  is precious. obviously i occasionally need to remove games/apps to make way for other apps from my cloud. The problem is, when I remove an app to make way for the new app I lose all my progress in that game apart from the option to save leader-board stats (which is the least important thing to me). Its very annoying to get so far in a game only to have to remove it to make way for a movie and lose all my progress!!!!!
    Any way round this?

    I do not know how to save game data when deleting an app, but as for updating, if you connect the ipad to a computer and do the update through itunes, you will not have to download the update package to the ipad just to the computer. so you don't have to free up quite so much space, as for movie and photo storage you can look at the sandisk wireless and airstash wireless SD card adapters, they create their own wireless network and come with apps that allow you to store and then stream movies to the ipad instead of loading them to the ipad storage.
    http://www.airstash.com/
    http://www.sandisk.com/products/wireless/media-drive/

  • Is there any way to get back my data if I had not restored it from time machine before reinstalling Mac OS X on my comp from utility. PS - My OS version has downgraded from Mountain Lion to Mac OS X 10.75  . Pls. help

    Is there any way to get back my data if I had not restored it from time machine before reinstalling Mac OS X on my comp from utility. PS - My OS version has downgraded from Mountain Lion to Mac OS X 10.75  . Pls. help

    Look at the blue box on this link:
    http://pondini.org/TM/19.html
    Ciao.

  • I was lately downlaoding a 700mb file, but i lost the internet connection and i have the .part file and i cant click resume, is their any way that i can continue dowlaoding the file without the need redownloading from the begining?

    I was lately downlaoding a 700mb file, but i lost the internet connection and only 635mb was downloaded and i have the .part file but the download menu says that download failed so i cant click resume, is their any way that i can continue dowlaoding the file without the need redownloading from the beginning?

    I do not know if your file can be recovered.  But I may be able help you to recreate it with ease.  If you will settle for a composite where all image are re-sized for a particular tile size and virtually cropped to its aspect ratio.  However all source image need be gathered into a folder to use my script process. Paste Image Roll Script and Picture Package Support  Link  http://www.mouseprints.net/old/dpr/PasteImageRoll.jsx

  • Is there any way to bring back the font type and background of Safari reader from iOS6 in to the iOS7 ? I really miss it, the new design is awful, simple and has now class at all.

    Is there any way to bring back the font type and background of Safari Reader from iOS6 in to the iOS7 ? I really miss it, the new design is awful, simple and has now class at all.

    I agree with you, many things in the ios 6.x were more elegant. The reader was the most one of them. I think the ios7 wants to be the windows 8.

  • Is there any way to change the color of the Firefox 4 menu button away from orange? It attracts my attention and as far as I can tell personas change everything but the menu button color.

    Is there any way to change the color of the Firefox 4 menu button away from orange? It attracts my attention and as far as I can tell personas change everything but the menu button color.

    You can change it with the App Button Color extension - https://addons.mozilla.org/firefox/addon/app-button-color

  • My screen smashed so had to get a new phone, my phone hadn't been backed up since march is there ANY way at all I could retrieve my pictures and/or videos? from all of my holidays :( please any help would be much appreciated! Thanks

    my screen smashed so had to get a new phone, my phone hadn't been backed up since march is there ANY way at all I could retrieve my pictures and/or videos? from all of my holidays please any help would be much appreciated! Thanks

    Strawbs12345 wrote:
    Yeah but I can't upload them because there not on the phone?
    Is that a question?
    Photo stream pictures can be viewed only on the devices they were sent to.  You can't transfer them back to your phone (or anywhere else).  If you didn't back up or import the photos to a computer, and they are no longer on your phone, they're gone.

  • Any way to apply AppleScript into subfolder for windows properties?

    I'm using the AppleScript below to set window's position and columns' widths to my liking. But I can only one window at a time. Is there a way to apply this script to all the subfolders? Automator can set window view to subfolders but can't set window's position and columns' widths.
    Any help or suggestion? Thanks
    tell application "Finder"
    activate
    set bounds of Finder window 1 to {top, left, window width, window height}
    select Finder window 1
    set width of column id name column of list view options of Finder window 1 to 450
    set width of column id modification date column of list view options of Finder window 1 to 150
    set width of column id size column of list view options of Finder window 1 to 100
    end tell

    You can open Finder windows for all of the subfolders of the front window, then loop through each one making your settings. Since this approach will also change the settings for any other open Finder windows, in my example script I just close all but the front window. Your example script doesn't use correct terminology for the bounds of Finder windows, so change the numbers I used for the bounds as desired:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    set {TheLeft, TheTop, TheRight, TheBottom} to {50, 50, 900, 500} -- a Finder window bounding rectangle
    tell application "Finder"
    try -- skip if no window
    set TheWindows to (count Finder windows)
    if TheWindows is greater than 1 then -- close other windows
    repeat with SomeWindow from TheWindows to 2 by -1
    close window SomeWindow
    end repeat
    end if
    open folders of entire contents of (get target of window 1) -- all
    -- open folders of (get target of window 1) -- one level
    on error errmess
    log errmess
    end try
    repeat with SomeWindow in (get Finder windows)
    set bounds of SomeWindow to {TheLeft, TheTop, TheRight, TheBottom}
    set width of column id name column of list view options of SomeWindow to 450
    set width of column id modification date column of list view options of SomeWindow to 150
    set width of column id size column of list view options of SomeWindow to 10
    end repeat
    end tell</pre>

  • Any way to apply presets to tethered shooting?

    i can't find a way to apply a preset/set of presets/look to files coming in when shooting tethered....is there a way to do this?
    apple really needs to find a way to make presets or looks possible....i find more ways to fine-tune aperture every day, but this is one glaring omission...yes i am aware of the work around to save presets, but there really should be a way to make this possible....

    Some Wifi access points provide iPass as a selection when you authenticate (for example, the Philly Airport allowed me to specify "iPass" in the provider pull down for the ATT access point). Using your iPass username and password will work in those instances.
    However, I haven't found the availability of iPass via access point login web interfaces to be wide spread.

  • Is there any way to see more than the latest three back ups when restoring from iCloud?

    I have had my phone set as icloud back up only for a couple months now and it had been backing up fine. But my wifi shut down on the phone and I couldn't back it up via iCloud. (I thought) I backed it up through my computer before taking the phone to the Genius Bar but it didn't work for some reason. And now I lost all my photos that were taken between the time that I had the wifi and when I got the phone replaced. However, I backed up the new phone via iCloud afterwards, with the phone restored to the time before i switched to iCloud backup. And I'm not a 100% sure but I'm sure it's backed up more than 3 times since I got the phone replaced. Is there any way to pick from the past iCloud backups, further back than the latest three?

    Welcome to the Apple Community.
    I don't believe you can see more than three, unfortunately.

  • HT1296 Is there any way to transfer my outlook contacts to my iPhone 4 but not from my phone to outlook at the same time? (one way from computer to iPhone)

    I have been trying to sync my outlook contacts to my iPhone one way from my PC to my iPhone, but the only one way option available is to replace the contacts on my phone with the ones on my computer. However, i dont want to replace them, but add the ones on my computer to my iDevice. is there any way to do so? And if yes, how?

    No.

  • Illustrator CS6 and Graphic Styles (Freezing)

    Hi everyone, I'm on a Mac and have Illustrator CS6. Whenever I try to open up Graphic Styles, it freezes.
    I deleted preferences and even did the disk permissions repair, then restarted. Nothing. I tried to create multiple types of documents too (print, web, etc), but whenever I try to open styles after creating that document, it freezes.
    These are the vanilla default graphic styles, mind you.
    It might freeze for other tools, but I'm not sure, haven't gotten that far in the investigation. Would anyone happen to have any ideas? :/ Thanks!!

    Just got this issue (yet again). I tried something I use to fix certain Bridge glitches - unmount any disk called USERS. I don't know why, but my Adobe programs don't like disks with this name. Then, when you click on graphic styles, give it like, 30sec - 2min to load. You can even just browse the interwebs. The AI icon on your toolbar will bounce when it's loaded up and ready to use again. Also, make sure the Graphic Styles aren't displayed when you close the file, or it can be hell to re-open it at all. Don't know why, but I had this same problem with CS5.
    Let me know if it works!!
    -Summer

  • Any way to apply effects (warp, crystal, wrinkle etc) evenly to symetric geometric shapes?

    Hi all,
    Just wondering if anyone knows if there is a way to evenly apply a warp, wrinkle, crystal effect/tool to a symetric shape like a circle and other geometric shapes???
    Im I could probably cut the shape into parts and flip them over so that they look like they join all up then apply the effect to the one object which then evenly effects the others, actually thinking about it I'm probably starting to creep into keiloscope design.
    Just wondering how other go about it? I've used the brush technique where you make a brush then apply that brush to the circle to make different even effects, are there other ways of going about it???
    Any help would be great

    Raptor,
    Just wondering if anyone knows if there is a way to evenly apply a warp ... to a ... circle ... ???
    You might end up with, a circle.
    Joking aside, in many cases the most efficient way is probably to apply them to partial shapes and then combine; especially in connexion with kaleidoscopic shapes, rotation, either round a common centre or of pairs, may have a place. And symbols may be your friends.

  • Any way to apply ActiveSync Policies by device?

    Trying to find a conclusive answer to where this is possible or not...
    Essentially, we have some users who wish to access email from Surface Pro tablets using activesync. Our existing policies that we enforce would require them to encrypt both the device, and any attached SD cards. The requirement for encrypted SD cards
    doesn't work with the Surface Pro tablets, thus they would not be able to sync mail under the current policy. Since we have other means of securing the tablets, I'd like to relax that rule only for the surface pro, while keeping it in place for other devices
    such as iPhone and Android. The problem is that since ActiveSync policies are applied at the user level, any user with multiple devices would get the relaxed policy regardless of device.
    I was wondering if there was a creative way to enforce different policy aspects based on the type of device, rather than the user owning the device.

    Not if you are using policies, no.
    You can allow Devices by user however and set-casmailbox
    ActiveSyncAllowedDeviceIDs
    Optional
    Microsoft.Exchange.Data.MultiValuedProperty
    The ActiveSyncAllowedDeviceIDs parameter accepts a list of device IDs that are allowed to synchronize with the mailbox.
    However, devices are not blocked from synchronizing unless this parameter is used together with settings that are defined by the
    set-ActiveSyncOrganizationSettings –DefaultAccessLevel cmdlet.
    Note:
    When you use the set-ActiveSyncOrganizationSettings –DefaultAccessLevel cmdlet, devices can still be blocked if they do not comply with a specific ActiveSync policy, regardless of whether the device is allowed by the list that is provided
    to ActiveSyncAllowedDeviceIDs. 
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

Maybe you are looking for