Removing (applescript) one of three identical items in InDesign file

I have 3 boxes exactly the same and need to remove one of them. The best option identifier I have is the location which varies slightly from one file to the next. Please see the attached and LMK if there are any ideas. Thanks!

I've mostly been trying to learn scripting of ID from the JavaScript side. Here are some alterations to the syntax that may work for you? My AppleScript is fading fast…
tell application "Adobe InDesign CS2" -- Forgive This?
tell active document
set zero point to {0, 0}
tell page 1
try
set ksBoxes to (index of every rectangle whose name of fill color is "C=100 M=20 Y=100 K=0") as list
if (count of ksBoxes) > 0 then
set fromTop to 0
set ksDelete to ""
repeat with ksBox in ksBoxes
if item 1 of geometric bounds of rectangle ksBox > fromTop then
set fromTop to item 1 of geometric bounds of rectangle ksBox
set ksDelete to ksBox
end if
end repeat
delete rectangle ksDelete
end if
end try
end tell
end tell
end tell

Similar Messages

  • The item contains one or more busy items that cannot be changed

    We have a Windows 2003 file server and we are having issues with Macs retrieving files/folders from it. There is a folder on the Windows share named "dropbin" that UserA has full permissions on. UserB has the following NTFS permissions on the dropbin folder.
    Traverse Folder / Execute File Allow
    List Folder / Read Data Allow
    Create Files / Write Data Allow
    Create Folders / Append Data Allow
    Write Attributes Allow
    Write Extended Attributes Allow
    This gives UserB the ability to look inside the dropbin folder and place content in there. This same user cannot delete or pull down anything that a different user (UserC) has put in there. UserA (the person with full permissions) should be able to pull down anything put in there.
    This works fine from an XP box if an XP user (UserB) puts content in there UserA from a Mac or a PC can get and manipulate the data. If a Mac user (UserB) puts a file up there (it seems to happen with a .txt file, a .cp file, or a .zip file) UserA from a Mac gets the following error when trying to download the file:
    "You may need to enter the name and password for an administrator on this computer to change the item named item.txt"
    When you hit continue you get the following error:
    "The item item.txt contains one or more busy items that cannot be changed"
    If you proceed to enter in the admin credentials, the file doesn't copy down to the local Mac and fails without an error.
    A couple of things we noticed....
    1. If Mac UserB puts up a Word document or a .dmg file then UserA from a Mac can pull it down fine without errors.
    2. On the Windows 2003 server we noticed that for each file we tried to upload it creates a ._ corresponding hidden file. For example, item.txt also has ._item.txt. If we go up on the server and remove the hidden file, Mac UserA can pull down the file fine.
    3. We tried zipping the files (or files and folders) locally on Mac UserB's desktop then putting the .zip file up there but since it creates a ._file.zip Mac UserA still can't pull it down.
    4. The fix we found for this is to have Mac UserB place the files they want to upload into a folder on the desktop, then upload that folder. When Mac UserA comes by they can pull down that folder's worth of stuff.
    We are accessing the Windows 2003 file share by going to the finder and using the "Go" menu and entering in:
    smb://servername/sharename
    and they use their Windows domain credentials to log in.

    We may have figured this out but it requires some more testing. The reason why the file upload creates the ._ files in the dropbin folder when UserB puts content in there is because UserB does not have the "Delete" permission in that folder. My guess is that it creates the ._ file when the file is in transit but then deletes that file after it has completed the transfer (but without the delete permission it couldn't remove the ._ file). What we did was added another user to the NTFS permissions for that folder, we added the built in "CREATOR OWNER" account and gave that user the "Delete" permission, now the ._ files do not appear under there and UserA can come along and manage the uploaded file okay.
    Hope this helps someone else out.

  • How do I remove an alert for a calendar item that has long since been deleted? and yet goes off mysteriously, un-deletably, and un-editably every single ****** week !!

    How do I remove an alert for a calendar item that has long since been deleted? and yet goes off mysteriously, un-deletably, and un-editably every single ****** week !!

    I have the same problem with my iPhone.  I set up a recurring calendar event for every Thursday.  That event is no longer happening during the summer, so I went in and chose one from the current month and selected Delete.  Then it gve me two choices, one of which was to Delete All Future Events of this one, and that's what I chose.  I figured, this way, I'll still be able to see the ones from the past, but won't have to see (or hear the alert) for the future ones.
    The following week, my phone alerted me to the appointment, and even showed it on the initial screen, even though it wasn't in the calendar.  I went in to the calendar and NOTHING was scheduled for that day.  So why is this happening?
    So I set up a new recurring event, for in the past, then went in and deleted all furture occurances, and it did the same thing... still alerted to an event that was no longer in the calendar.
    I hope somebody else has found a fix, or at least a reason for why this is happening.

  • String[] sa = {"one", "two", "three"} with other types, too?

    String[] sa = {"one", "two", "three"}
    is a nice abbreviation in instantiating an object and initialize with multiple elements in one line of code.
    are there similar syntax abbreviations for e.g. HashSet?
                    HashSet hs = new HashSet();
                    hs.add("one");
                    hs.add("two");
                    hs.add("three");is not very handy ... (especially for much more elements than 3!)

    >                 HashSet hs = new HashSet();
    hs.add("one");
    hs.add("two");
    hs.add("three");is not very handy ... (especially for much more
    elements than 3!)Yes, that might not be very handy. But if you have many elements, String[] sa = {"one", "two", "three"} won't be very handy either. Anyway, initialising collection with large numbers of hard-coded items isn't something you do very often.
    If you absolutely want to write it in one line in your editor, just do so:
    HashSet hs = new HashSet();hs.add("one"); hs.add("two");hs.add("three");

  • Identical item codes in two different warehouses

    We currently have several items that exist in two warehouses. We are using SAP Business One, 8.81 PL09, DTW 88.1.7. All of our items from warehouse A have pulled without any errors. We are using a ItemGroupCode of 100 (default) for both warehouses, and managing the items by warehouse. Attempting to use DTW to pull the identical items into B, we receive an error of Item code 'ABC1234' already exists error 65171. My guess is that we will need to use a separate ItemGroupCode for each warehouse. I'm sure that other people out there have had the same issue. Thank you.

    Hello Friend,
    You should check item in csv or txt file that is there any duplicate itemcode in for source file.
    Because itemgrpcod can be same for all materials.
    Thanks
    Manvendra Sinhg Niranjan

  • Where is IDENT(Item ID) within BOM stored

    Does any one now where the item id(IDENT) field value really stored in DB..
    It is not stored STOP..I am wondering if it would be stored in different table..
    Any help would be appreciated.
    Thanks,
    Frank

    Rich,
    How can we determine STLKN..?if you want item id (STKLN) depending on STLNR and IDNRK every time you hit the same number...
    Am I right..?or else is there another key field where I should I take into account..?
    Any help would be appreciated.
    Thanks,
    Frank.

  • Submit button to submit one of three values (the one thats filled in)?

    I've got a table I wan't to display a subset of data from.
    The data displayed is decided by one of three different user inputs.
    The user can either enter an employee-ID (a column in the table) in a textfield and get all the rows with empID=[chosen empID] or
    The date the resulting rows were last updated (a column in the table) in a datepicker [update_time] = chosen date or
    The reportperiod (also a column in the table) in a drop down list [report_period] = chosen report period.
    What is the best way to do this so that the query is only based on one of them?
    I'm guessing maybe I should clear the other two when one is set by the user and somehow check which one contains data for the select-clause when the "search" button is pressed...
    I guess I could have a button for each of them but that wouldn't look very nice...
    I'm not sure about how to do this and maybe there is an easier way (user interface-wise)?

    Hi
    Okay, here is a simple example - once you have this working, you can enhance the feel with JS if you want.
    Create your three items.
    Create a button that submits the page as 'GO' (just a simple branch to the same page).
    Create a page level validation that is conditional on the request value = GO that verifies that only one option is selected (if you want - why can't they select more that one?)
    Create a report region with you query in with the display conditional on PL/SQL expression something like this
    :REQUEST = 'GO' AND
    (:P_ITEM1 IS NOT NULL OR
    :P_ITEM2 IS NOT NULL OR
    :P_ITEM3 IS NOT NULL)For you report region source use the values but handle the nulls for example
    SELECT *
    FROM emp
    WHERE INSTR(UPPER(ename),UPPER(NVL(:P_ITEM1,ename))) > 0if you want a search or perhaps this is you need an equality
    SELECT *
    FROM emp
    WHERE ename = NVL(:P_ITEM1,ename)Now you can do the other items too wrapping an OR around them like this
    SELECT *
    FROM emp
    WHERE (INSTR(UPPER(ename),UPPER(NVL(:P_ITEM1,ename))) > 0 OR
           dptno = NVL(:P_ITEM2,deptno) OR
           empno = NVL(:P_ITEM3,empno))Is this what you mean?
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • Remove row wrapping in a list item

    Hello,
    I've been experimenting with row wrapping and the various column limits in SharePoint. It seems that once a list starts row wrapping, it stays that way. Even if you delete columns in the list (even down to just one column), the list items still wrap in the
    database. If I delete all the list items and add more, they still wrap.
    Is this truly the case? If so, is there a way to "remove" or "reset" the wrapping?
    FYI, I'm using the SQL query, tp_RowOrdinal=1, to see if the list item in wrapping (on my dev machine).
    Thanks!

    Hello,
    Thank you for your question.
    We are currently looking into this issue and will give you an update as soon as possible.
    Thank you for your understanding and support.
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Gear keeps spinning, cannot receive mail on one of three account, snow leopard on imac

    Gear keeps spinning on one of three e-mail accounts, snow leopard, on imac

    Found out I can log on to my networked Macs via the Guest account. So I just need to de-secure my network and share everything on the Macs with Read/Write privileges for everybody, and apply changes to enclosed items.
    Was able to get my Macs to see my Windows computers by screwing around with networking. Windows computers can't connect to the Macs now. They used to before Lion.
    #FAIL

  • The operation can't be completed because one or more required items can't be found. (Error code -43)

    When I attempt to add files to...or copy to the desktop of my mac, my icloud (idisk ..the blue icon on my desktop) is giving this error:
    The operation can’t be completed because one or more required items can’t be found.
    (Error code -43)
    I've been searching for info on that error code, but I'm not find anything on (many different error codes, but not -43).

    I get an error -36.
    I did the dot_clean in the terminal.
    Did not fix it.

  • One or more busy items cannot be changed

    I've dragged songs out of iTunes to a folder on the desktop, dragging this folder to my external HD the message "the item "..." contains one or more busy items that cannot be changed" comes up. The permissions for this folder are read and write so not sure what else to do. I've done this before and had no problems...

    I finally sorted out a similar problem.
    Discover which files are involved by copying the *contents* of the source folder to a destination.
    The offending folder (or folders) should display by name. If the item is a file, the file name should display. You can drill down within a folder by the same process: copy the contents (not the entire folder) to a destination, to find the offending folder or item.
    I ran across and old (2002) posting which mentioned file type as preventing deletion:
    http://hints.macworld.com/article.php?story=20020920055805577
    I found an old application which can display file creator and type on OS X:
    http://www.frederikseiffert.de/filetype/
    How old is it? The System Requirements are:
    "FileType runs on Mac OS X v10.0 or later and on Mac OS 8.6 or later with CarbonLib 1.3."
    It runs on 10.4. Haven't tested anything later.
    I discovered that the file types on the offending files were "brok". It so happens they were all tiffs, so I changed them to "TIFF". I still got a message about needing to enter an admin user and password, but the copy then worked.

  • I renamed a power point a file and now when I try to open it it keeps giving me the error code -108. If I try to open or copy it say: The operation can't be completed because one or more required items can't be found. (Error code -43). What do I do?

    I renamed a power point a file and now when I try to open it it keeps giving me the error code -108. If I try to open or copy it say: The operation can’t be completed because one or more required items can’t be found. (Error code -43). What do I do?

    Post in Microsoft's Powerpoint (Mac) message boards.

  • HT204053 I have 2 apple ID's.One does not exist anymore. How can I remove the one ID. Under my ibooks I cannot purchase any books or update specific Apps because it recognizes our old ID. How can I remove that particular ID?

    I have 2 apple ID's on my IPAD. One is no longer in use. I tried to remove the one email address and it is still shows up for example when I want to purchase a book in Ibooks it is showing the old apple ID and I do not have the password. How can I eliminate the old Apple ID?
    Please advise.
    Thank you

    To change the Apple ID for purchasing, go to Settings>iTunes & App Stores, tap the ID, sign out, then sign back in with the ID you want to use.  (You will still be prompted for the password for the old ID when updating any apps purchased with the ID.)
    To change the ID for FaceTime, do the same thing in Settings>FaceTime.  For iMessage, do the same thing in Settings>Messages>Send & Receive.

  • How to remove only one row from the database using labview6.1

    using labview 6.1 I create a table with various rows and columns and store bulk of data's in them.,, what procedure should I follow to remove only one paticular row from the database? Help me out with an example please,,
    Thanking you in advance!

    Hi,
    If you have the database toolkit you can delete a row using just a SQL Query to "DB Tools Execute Query.VI"
    Example:
    DELETE FROM Table name Where SerialNum='Value' And Date='Value' And Time='Value'
    See also attached VI
    Best Regards
    Johan
    Attachments:
    Delete_a_row_in_a_database_table.vi ‏48 KB

  • Inbound idoc error in 51 Status of at least one serial number of item

    Dear Experts,
    There is one inbound IDOC which is in error with status 51 showing error Status of at least one serial number of item  is not allowed.
    Can you please advice why this error is coming.
    Thanks & Regards,
    Nikhil Kanegaonkar.

    An inbound IDOC in error will have the status 51, & it is marked for deletion it has a status of 68.
    http://www.dataxstream.com/2009/10/mass-status-change-sap-idoc/
    http://wiki.sdn.sap.com/wiki/display/ABAP/IDoc+Statuses
    Edited by: Krupaji on May 6, 2011 2:38 PM

Maybe you are looking for