[JS] Move a Guide that has a ScriptLabel

I am trying move a specific guide. The guide is on the master page and is named myGuide
Here is what I currently trying, but it doesn't work.
app.activeDocument.guides.item("myGuide").location = 2
Thanks in advanced for any help.
Dan
P.S. I will this to work in CS2 and CS3.

FYI - beating my own drum here, but I think this might be helpful: by installing our free 'APID ToolAssistant' (formerly Active Page Items Runtime) plug-in, you gain some additional script functionality in CS/CS2/CS3.
Amongst a host of other functionality, it's also a bit of a grab-bag of functionality we needed to get in ExtendScript for our own use - each time we needed a new feature, we just plunked it into the plug-in and made it accessible via the ExtendScript DOM.
One of the things is that it adds an event called 'labeledPageItems' to the Document object, which returns an array (not a collection) of all matching items. For example, if I have a document that contains a frame, and two guides that all have the label 'test' assigned, the following script returns an array that contains all of them:
var theDoc = app.activeDocument;
var theItems = theDoc.labeledPageItems("test");
alert(theItems);
labeledPageItems accepts wildcard expressions (not grep - just simple wildcards; "*" = zero or more chars, "?" = exactly one char) - so you can do things like:
var theDoc = app.activeDocument;
var theItems = theDoc.labeledPageItems("t*");
alert(theItems);
to grab all page items whose label starts with 't'.
There are some more options (e.g also select by layer or spread).
If you install the plug-in you can inspect some short docs via the ExtendScript Object Model viewer.
Other interesting freely available features are:
- a progress bar window with optional Cancel button for use with long-running scripts in InDesign CS/CS2 (which became obsolete, but is still functional in CS3),
- clearing the InDesign undo stack during long running scripts,
- temporarily locking InDesign into a fake 'modal mode' (so the user cannot interfere with it while you're juggling things with scripts and external programs - I use it to make fake 'modal dialogs' that seem to originate from InDesign, but are really created from a REALbasic app),
- etc...
The latest APID ToolAssistant 1.0.45 adds a new event Document.multiPropertyAssign, which allows you to assign a whole collection of objects and attributes new values in one event call - which represents a single undo, and seems to speed up some scripts (the jury is still out - in some situations, there is marked improvement, in other situations it's actually slower). Docs can be seen via the ExtendScript toolkit.
What's available in ExtendScript is a bit of a hodgepodge as it is mostly driven by our own needs rather than by design.
This part of the functionality of the plug-in is all free (as in 'at no cost') - APID ToolAssistant has two modes (licensed and unlicensed), and you can use this stuff with an unlicensed version installed; check the docs for more info.
http://www.rorohiko.com/apidtoolassistant.html
http://www.rorohiko.com/activepageitemsdeveloper.html
(the downloadable demo of APID contains PDF documentation that is relevant to the free APID ToolAssistant)
Hope it's useful!
Cheers,
Kris

Similar Messages

  • I am trying to use video that has sound throughout it. I want the sound to remain in it's current time locations but want to replace parts of the video with pics

    I am tring to make a movie on IMovie that has continous film footage with sound.  I want to retain the flow and current time location of the sound...but replace portions of the streaming video with still pictures without losing the current placement of the sound track portion of the current film.  Please help.  Thanks  Philfrompendleton

    use the keyword 'cut away' in iMovie's built-in Help for detailed advice ... 

  • I buy for mac app but not for the iPad, so how do I reinstall a program that has already purchased? I need help because I bought the imovie'11 but when he opened it only brought 8 movie trailer templates instead of the 15 it says on the program. How do I

    I buy for mac app but not for the iPad, so how do I reinstall a program that has already purchased? I need help because I bought the imovie'11 but when he opened it only brought 8 movie trailer templates instead of the 15 it says on the program. How do I solve this problem? Once paid for a program incomplete. I also liked that the AppStore itself had a button to reinstall programs already bought, because it is very hard to understand how to do this in the store, only option is to install and hide purchase, and how do I reinstall, attention'm talking about reinstalling a computer mac, not an ipad or iphone.
    Thank you.

    Prodesigntools.com , go ahead and download the software from there and use your serial number to serialize it.

  • Using Migration Assistant to move files from old PC laptop to new MacBook Pro that has Windows 8 installed containing Outlook

    When using Migration Assistant to move files from old PC laptop to new MacBook Pro, that has Windows 8 installed containing Outlook, will emails, contacts and calendar entries be moved to Outlook on the new MacBook or into Mail, Contacts and Calendar?

    I doubt they will. But then I'm not sure as I used a migration program once about 18 years ago and totally FUBARed the system I had at that time and I've never used one again.
    For me the reason to have a new system is to start fresh. Installing only program that I now use and manually copying data over from the older system.
    Not sure your older version of Outlook, and the outlook mail boxes, are compatible with Office/Outlook for Mac 2011.
    A better place to ask this question would be on the MS Office for Mac forums.
    Hope it all works out for you.

  • I am trying to download a movie onto my brand new ipod that has nothing on it. it is a 8gb ipod and the movie is 3.4 gb. halfway through it tells me there is no more space to download the movie. how do i fix this?

    i am trying to download a movie onto my brand new ipod that has nothing on it. it is a 8gb ipod and the movie is 3.4 gb. halfway through it tells me there is no more space to download the movie. how do i fix this?

    Go to the Store tab in iTunes and click on the Check For Available Downloads.

  • I used scripting brigde to add a movie that has size bigger than 5GB, exactly after two minutes iTunes return a failed, but the processing of the file is actually added to iTunes Library successfully. The copying take more than 5 minutes to complete. Why?

    I used scripting brigde to add a movie that has size bigger than 5GB, exactly after two minutes iTunes return a failed, but the processing of the file is actually added to iTunes Library successfully. The copying take more than 5 minutes to complete. Why the iTunes Scripting Brigde returned failed when it is actually success? It occurred exactly 2 minutes after submit the request to Scripting Brigde. Is this 2 minutes related to the Apple Event time out? if it does, how do I get around this problem? thx

    I can tell you that this is some of the absolutely worst customer service I have ever dealt with. I found out from a store employee that when they are really busy with calls, they have third party companies taking overflow calls. One of those companies is Xerox. What can a Xerox call center rep possibly be able to authorize on a Verizon account?  I'm Sure there is a ton of misinformation out there due to this. They don't note the accounts properly or so everyone can see them. I have been transferred before and have asked if they work for Verizon or a third party also and was refused an answer so, apparently they aren't required to disclose that information. I spent a long time in the store on my last visit and it's not just customers that get the runaround. It happens to the store employees as well and it's beyond frustrating.

  • HT204370 can you return a movie purchased by mistake that has not been viewed yet?

    can you return a movie purchased by mistake that has not been viewed yet?

    Hi jimmy505,
    The following information should help you with this:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    Find the email receipt for your purchase.
    Click Report a Problem under the app that is having the issue.
    When prompted, enter the Apple ID and password you used to purchase the item, then click Report a Problem.
    Click Report a Problem next to the item you are having an issue with.
    From the Choose Problem dropdown menu, choose the appropriate issue.
    Follow the onscreen instructions and—if prompted—type a description of the problem into the text field.
    Click Submit to have your issue reviewed.
    Hope this helps ....
    - Judy

  • Cannot find itunes rental movie that has been downloaded

    cannot find itunes rental movie that has been downloaded.  I purchased one movie and it shows up --- the 2 rental movies do not.  Help please - I am going overseas tonight and would love to watch these movies.  I understood I have 30 days to open and 48 hours to view outside of the country.  Thank you

    Welcome to the Apple Community.
    Have you looked in your video app.

  • I have a router that has a readyshare USB storage access port that has mp4's of movies. So how can I view them from my iPad 2 ?

    I have a router that has a readyshare USB storage access port that has mp4's of movies. So how can I view them from my iPad 2 ?

    I just bought a NETGEAR WNDR3400v2". 
    I own a mac, running 10.7 and an ipad 1.
    I can access my USB stick, on the netgear wireless router, from my mac or ipad.
    From a mac or ipad .... http://readyshare.routerlogin.net/shares/USB_Storage/    or  just http://readyshare.routerlogin.net/shares
    Also,   on a mac only, try, go > connect to server> smb://readyshare
    Works for me!

  • I have photoshop elements3 istalled and have ltos of pictures. Recently changed computer that has windows 8 and problems with some of my photos in that some of these have voicce comments that now cannot connect. Same applies to some 'movie pictures

    currently have elements 3 and recently changed computer that has windows 8 installed. my store of pictures - some appear to be 'corrupted' in that I can see a icon  for the picture but no true picture. Also some of the pictures have a my voice message that now is not available. Also, some are movie pictures that again an icon but nothing else

    If you could remove the card without destroying the laptop, you would then be able to see if the integrated Intel chip works
    Do you currently have the Intel chip turned off in the BIOS... or are you using the switchable graphics feature?
    If you ARE using switchable graphics, that MAY be your problem
    Dual video laptop problems... ignore this if you have the Intel chip turned off in BIOS
    -http://helpx.adobe.com/premiere-pro/kb/error---preludevideo-play-modules.html
    -http://forums.adobe.com/thread/1001579
    -Use BIOS http://forums.adobe.com/thread/1019004?tstart=0
    -link to why http://forums.adobe.com/message/4685328
    -http://www.anandtech.com/show/4839/mobile-gpu-faceoff-amd-dynamic-switchable-graphics-vs-n vidia-optimus-technology/2

  • How do I move my iPod files to my original PC that has been wiped clean?

    The pc that has always been my primary iTunes computer has been wiped out and restored. When I plug in my iPod with all my music and stuff on it, iTunes does not recognize my computer.  How do I export my stuff from my iPod onto my pc?  I have maxed out my authorized computers.
    HELP!
    IPod is 80GB and has 4687 songs using 25.1GB used.  I dont want to lose all my files and have to start over.
    Thanks!
    Brenda

    There are several tools available for moving the library on your iPod to iTunes.
    Google for CopyPod or Yamipod.
    The Apple recommended method is described here:
    How to use your iPod to move your music to a new computer
    Hope this helps.
    M
    17' iMac fp 800 MHz 768 MB RAM   Mac OS X (10.4.6)   Several ext. HD (backup and data)

  • HT4095 I have a downloaded movie that has frozen 90% of the way thru watching it. When I try to launch it I just get a black iPad screen. Any way to remedy this?

    I have a downloaded movie that has frozen 90% of the way thru watching it. When I try to launch it I just get a black iPad screen. Any way to remedy this?

    This is a Microsoft problem. Contact them for assistance: http://support.microsoft.com/kb/295539
    mitch86 wrote:
    ... However, for work, I still have to use Microsoft.
    Are you certain about that? There are many alternatives to Office today. Consider
    LibreOffice (donation-supported)
    NeoOffice ($10 but older version is free)
    OpenOffice (completely free)
    In addition to the above I also recommend Apple's Pages ($19.99). All of these options allow you to open, edit, and save Word-formatted documents and spreadsheets. I use OpenOffice and Pages and have been completely Microsoft - free for over a year now. Life is better without Microsoft.

  • MacBook Pro with SSD that has a limited disk space (120GB). Rendering in Project File (User/Movies/Final Cut Projects), it takes huge space and the limited disk space would not be enough for the whole editing.

    I'm using MacBook Pro with 128GB SSD that has a limited disk space. As we know, when rendering in Project File (User/Movies/Final Cut Projects), it takes huge space and the limited disk space would not be enough for the whole editing.
    My question is, Is there any method to get the rendering Projects file saved into an external hard drive which is connected with USB/ Thunderbolt/ Firewire, with huge disk space (eg. 500GB HDD).
    Now, new project created in my Mac is automatically saved in (User/Movies/Final Cut Projects) and my Mac has ran out of space to hold the files.
    Thank you.

    You have at least 3 different ways to show the project library:
    1) Go to WIndow->Show Project Library
    2) Click the button in bottom left of your window: 
    3) Hit the keyboard shortcut (Command-0)
    The project library will be shown, occupying the area where the timeline usually is.
    Your hard disks will be visible. Click the hard disk where you want the new project to reside and hit Cmd-N to create a new project.

  • Why does an unknown  error (-42110) appear when i try to play a rental movie that has downloaded already?

    why does an unknown  error (-42110) appear when i try to play a rental movie that has downloaded already?

    Welcome to the Apple Community.
    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
    Restart the Apple TV (Settings > General > Restart).
    Restart the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router. (Also try removing it’s power cord for at least 30 seconds)
    Reset the Apple TV (Settings > General > Reset > Reset all settings)
    Restore the Apple TV (Settings > General > Reset > Restore)

  • HT1212 i want to get my photos and this app that has my movies on it, but my ipod touch is locked and i forgot the passcode. normally i would have to restore my ipod but how do i keep my content if my ipod touch says its never been backed up?

    i want to get my photos and this app that has my movies on it, but my ipod touch is locked and i forgot the passcode. normally i would have to restore my ipod but how do i keep my content if my ipod touch says its never been backed up?

    If when you connect the iPod to your computer yu can't make a backup:
    - Contact a data recovery company
    - Maybe via How to perform iPad recovery for photos, videos
    Wondershare Dr.Fone for iOS: iPhone Data Recovery - Wondershare Official     

Maybe you are looking for

  • SSIS Expression to get yesterday's date

    Hi , I used the following expression to get yesterday's date : (DT_WSTR,4)YEAR(GETDATE()) + RIGHT("0"+(DT_WSTR, 2) MONTH(GETDATE()) ,2) + RIGHT("0"+(DT_WSTR, 2) DAY(DATEADD("dd", -1, GETDATE())) ,2) It returns correct date but fails on last day of th

  • No data saved in Adobe Forms

    Hi experts, I'm new to Adobe Interactive Forms. I'm trying to get the ISR scenario from the  'ISR cookbook' to work. Untill now that was really easy to do. I definded a scenario, defined my characteristics and developed an Adobe Form. After saving an

  • Broken iMac with Music/Video

    My friend has an iMac G5, just like mine, and his logic board has broken. He has many songs and videos downloaded onto it, usually from either torrents or limewire. he is scared that Apple(he has applecare) will arrest him for this. I am telling him

  • Data transfer form 4.7 to ECC 6.0 in upgradation project. How to do?

    Hi Experts,    The client is going for an up-gradation from 4.7 to ECC 6.0. The entire data needs to be transferred from 4.7 to ECC 6.0. What is the best possible way to do this? Please advise. Regards, Tomesh

  • Load entire file at once?

    I have a PDF that on every page has borders, that causes load times for every pages, and adobe doesn't store the pages that were previously loaded, so even going back to previously loaded pages makes me wait for the page to load. (it gets annoying af