[AS CS3-4] Delete applied master, entirely deletes the master from doc?

Here's what I am trying to do: Add a page at the end of the document. Then, if there is a master page applied automatically, like "A-Master", to delete it so the page has "[None]" master applied.
I've tried several variations on applying "[None]" or "None" or nothing or null, which do not seem to work.
I also have a script that I thought worked, but it actually COMPLETELY removes the master spread from the entire document. Clearly not what I intended.
Any suggestions on how to do this?
Non-Functional example script:
tell application "Adobe InDesign CS3"
tell document 1
  --page 1 has "A-Master" applied
   tell page 1 to delete applied master
  --"A-Master" is now gone from document
end tell
end tell

On 3/6/09 2:18 AM, "Dave Saunders" <[email protected]> wrote:
> I'm not sure what the AS syntax is.
set applied master of page 1 to nothing
Shane Stanley <[email protected]>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>

Similar Messages

  • Can we delete the requests from Infoobject master data

    Hello all,
    we load master data process chains everyday. now when when we right click on the attribute "Manage" then there are lots of requests there.
    Can we delete the older requests from there?
    Does having lot of requests there slow down the performance?
    Thanks in advance

    Ravi,
    Yes we have transactional data also loaded. So you mean I cannot delete the requests from Infoobject ?
    So can we use the given FM and delete master data lets says once a week ?
    I am really confused about this. I tried deleting some of the request from ATTR (Right click on attr and then manage -> select request and delete) and it did actually get deleted so was that wrong thing to do ?
    Thanks for reply

  • Deleting the values from table control

    HI,
    I need to remove the selected line from the Table control on my screen.
    The point is that the Internal table does not have any records,.
    for example in the Customer Create screen,
    while entering the bank details we will enter it in a tbale contraol.
    but the records doesnt exist in the database. but the record gets deleted from the table control only if we press delete button.
    please guide me.
    please note : I want to delete the record from Table Control on the screen and I dont have any corresponding database records..
    regards

    Hi..
    The solution to your problem - deleting values from table control.
    Here: it_wizard is the internal table which is holding the value of table control.
             wa_wizard is the work are of the internal table it_wizard.
             it_delete is the internal table which holds the deleted record of table control.
             wa_delete is the work area of the internal table it_delete
    Also here the field ZSEL is the character field which is used to select the entire record in the table control.
    LOOP AT it_wizard into wa_wizard WHERE zsel = 'X'.
           MOVE-CORRESPONDING wa_wizard TO wa_delete.
           APPEND wa_delete TO it_delete.
           delete table it_wizard from wa_wizard.
    DELETE  FROM zfin_goods WHERE ZFG = WA_delete-ZFG.
    ENDLOOP
    if sy-subrc eq 0.
    Message 'Delete Successful' type 'S'.
    endif.
    The above code will delete the record from both the table control.internal table and the database table.
    I think this will help you to great extent.
    Ward regards,
    Bhuvaneswari
    Edited by: BHUVANESWARI THIRUNAVUKKARASU on Jan 7, 2009 10:39 AM

  • How to delete the Folder from sql server 2008

    Hi all,
    I was trying to delete the folder from sql server 2008 with the below script
    DECLARE @path VARCHAR(256) -- path for backup files
    DECLARE @cmd VARCHAR(8000)
    DECLARE @folderName VARCHAR(256) -- filename for backup
    SET @folderName = + (CONVERT(varchar(10), GETDATE()-7, 112))  -- 7 days back date folder name
    SET @path = 'I:\Backup_Test\' + @folderName -- Folder path
    SET @cmd = 'del ' + @path -- Delete
    EXEC master..xp_cmdshell @cmd
    --Print @cmd
    This is not working it was asking the Confirmation (I:\Backup_Test\20100629\*, Are you sure (Y/N)? ) what will i do to the delete the folder.
    Thanks,
    Prasad R.

    I would notice   you that T-SQL does not play well to do things like that. Do not you want using .net language to delete folders?
    Old method is
    declare @HR int, @CFOLDER varchar(255),@FSO int
        set @CFOLDER='D:\folder\'
        EXEC @HR = sp_OACreate 'Scripting.FileSystemObject', @FSO OUT
        EXEC @HR = sp_OAMethod @FSO, null, 'DeleteFolder', @CFOLDER 
    Now regarding to your second question please examine xp_fileexist  system stored procedure
    CREATE FUNCTION dbo.fn_file_exists(@filename VARCHAR(300))
      RETURNS INT
    AS
    BEGIN
      DECLARE @file_exists AS INT
      EXEC master..xp_fileexist @filename, @file_exists OUTPUT
      RETURN @file_exists
    END
    GO
    -- test
    SELECT dbo.fn_file_exists('c:\a.txt')
    Best Regards, Uri Dimant SQL Server MVP http://dimantdatabasesolutions.blogspot.com/ http://sqlblog.com/blogs/uri_dimant/

  • How to restrict the user(Schema) from deleting the data from a table

    Hi All,
    I have scenario here.
    I want to know how to restrict a user(Schema) from deleting the values from a table created in the same schema.
    Below is the example.
    I have created a table employee in abc schema which has two values.
    EMPLOYEE
    ABC
    XYZ
    In the above scenario the abc user can only fire select query on the EMPLOYEE table.
    SELECT * FROM EMPLOYEE;
    He should not be able to use any other DML commands on that table.
    If he uses then Insufficient privileges error should be thrown.
    Can anyone please help me out on this.

    Hi,
    kumar0828 wrote:
    Hi Frank,
    Thanks for the reply.
    Can you please elaborate on how to add policies for a table for just firing a select DML statement on table.See the SQL Packages and Types manual first. It has examples. You can also search the web for examples. This is sometimes called "Virtual Private Database" or VPD.
    If you have problems, post a specific question here. Include CREATE TABLE and INSERT statements to create a table as it exists before the policies go into effect, the PL/SQL code to create the policies, and additonal DML statements that will be affected by the policies. Show what the table should contain after each of those DML statements.
    Always say which version of Oracle you're using. Confirm that you have Enterprise Edition.
    See the forum FAQ {message:id=9360002}
    The basic idea behind row-level security is that it generates a string that is automatically added to SELECT and/or DML statement WHERE clauses. For example, if user ABC is only allowed to query a table on Sunday, then you might write a function that returns the string
    USER  != 'ABC'
    OR      TO_CHAR (SYSDATE, 'DY', 'NLS_DATE_LANGUAGE=ENGLISH') = 'SUN'So whenever any user says
    SELECT  *
    FROM    table_x
    ;what actually runs is:
    SELECT  *
    FROM    table_x
    WHERE   USER  != 'ABC'
    OR      TO_CHAR (SYSDATE, 'DY', 'NLS_DATE_LANGUAGE=ENGLISH') = 'SUN'
    ;If you want to prevent any user from deleting rows, then the policy function can return just this string
    0 = 1Then, if somone says
    DELETE  employee
    ;what actually gets run is
    DELETE  employee
    WHERE   0 = 1
    ;No error will be raised, but no rows will be deleted.
    Once again, it would be simpler, more efficient, more robust and easier to maintain if you just created the table in a different schema, and not give DELETE privileges.
    Edited by: Frank Kulash on Nov 2, 2012 10:26 AM
    I just saw the previous response, which makes some additional good points (e.g., a user can always TRUNCATE his own tables). ALso, if user ABC applies a security policy to the table, then user ABC can also remove the policy, so if you really want to prevent user ABC from deleting rows, no matter how hard the user tries, then you need to create the policies in a different schema. If you're creating things in a different schema, then you might as well create the table in a different schema.

  • Problem in deleting the request from ODS......

    Hi,
    I am not able to delete one INIT request from the ODS. This request was taking long time and eventually it turned to RED. Data was there in PSA but I deleted the request and thought of doing the fresh load .
    Problem is that although I have deleted the request from the ODS , it is again coming back to ODS . I have started the fresh load. AS the previous also coming to this ODS its taking long time to load the data.
    Can some body let me know how to STOP/DELETE the old request??  I have already turned everything to RED QM status , overall status etc. but still its not getting stoped.
    Thanks Jeetu

    Hi Jeetu,
    Even though u find the job and cancel it or delete it the data load will not stop untill it loads the entire data!
    Hope there will be large volume of data !
    Until the data load is complete wait and then delete the request and then delete the init and start the fresh load!
    I too faced the same issue but i am helpless i could not stop the data load inthe middle!
    If you found any solution for this let me also know
    Thanks
    Ram

  • I recently moved my music to an external hd. I deleted the music from the internal. When i plug in the External,itunes doesnt pick it up. I have pointed itunes towards external but still not working,driving me nuts!

    I recently moved my music to an external hd. I deleted the music from the internal. When i plug in the External,itunes doesnt pick it up. I have pointed itunes towards external but still not working,driving me nuts!

    LeoGets wrote:
    I recently moved my music to an external hd.
    the best way would be to copy the entire iTunes folder (not just the iTunes music or media folder) from <MacintoshHD>/users/<yourname>/music on your Mac to the external, then launch iTunes while holding the option (⌥) key, click on choose library when prompted, and select the iTunes folder on the external.
    I have pointed itunes towards external but still not working,driving me nuts!
    that tells iTunes where to put new additions to your library, not where the content currently is.

  • I am trying to delete the data from the info cube.

    Hi All,
               i am trying to delete the data from the info cube.in cube reporting symbol is availble.when i click on delete button delete symbol is coming again when i click on refresh button request is not deleting .please give me solution .
    Thanks,
    chandu

    Hi,
    Also try to delete in Data Mart Status.
    R u deleting particular request or the entire data in cube, if entire data then right click on Cube select Delete Data, it entirely deletes Data.
    Hope it helps you...Let us know if you still have any issues.
    Reg
    Pra

  • I deleted the photos from my iPhone 6 that were synced from my computer automatically but it is still using my storage. How do i fix that? I have tried all of the steps listed in the community.i have the new iTunes 10.

    I deleted the photos from my iPhone 6 that were synced from my computer automatically but it is still using my storage. How do i fix that? I have tried all of the steps listed in the community.i have the new iTunes 10.

    Hi QuisB123,
    If you are having an issue with reclaiming free space after deleting photos from your iPhone, use the steps in this article to assist -
    If you get a "Not enough free space" alert on your iPhone, iPad, or iPod touch - Apple Support
    Specifically -
    Orphaned files might remain on your iOS device if it's physically disconnected while syncing music, podcasts, videos, or photos. This can prevent iTunes from syncing the iOS device on subsequent sync sessions. When this happens, you might see a large amount of "Other" disk usage for the iOS device in the Capacity indicator in iTunes. Try these steps:
    Turn off the music or photo sync option in iTunes for the device.
    Click Apply to sync the changes to the device.
    Turn the music and photo sync options for the device on again.
    Click Apply again to try to sync the device to iTunes. If you see the "Not enough free space" alert, continue to step 5.
    Turn off the automatic syncing functions for the iOS device:
    Select the iOS device from the iTunes window and click the Summary tab.
    Deselect "Automatically sync when this device is connected" and select the "Sync only checked songs and videos" checkbox.
    Click Apply to sync the changes to the device.
    Reduce the amount of data that is being synced to the device and resync the device. For example, if syncing your Music library exceeds the memory capacity of the device, choose "Selected playlists" to transfer rather than "All songs and playlists" under the Music tab in iTunes. If you see the "Not enough free space" alert, continue to step 6.
    Restore using iTunes.
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • I deleted a contact, but they still show up in my text options to send.  I would like to delete the contact from my texts too.

    I deleted a contact, but they still show up in my text options to send.  I would like to delete the contact from my texts too.

    No don't restore your iphone. I've done that several times &amp; it has never worked. -I still have deleted contacts in my iphone texts.  *However if you do restore it you will not lose all your data, pics, text messages etc if you backup in iCloud. It restores back to original phone. Very nice :). Anyhowwww....
    I JUST  figured it out!! :))). Remove the contact from recents.
      Start a text. You should see the deleted contact. All the way to the right of the name is a symbol. The symbol is a circle with "i" in the middle. Click that symbol then in red lettering click "remove from recents".

  • How to Delete the dimension from the cube ?

    Hi ,
    how to Delete the dimension from the cube ?
    i have added the new dimension by assiging one characteristic to that dimension .
    now i  want to delete it ,
    but system saying that   Dimension ZXXX  contains InfoObjects; deletion not possible .
    how to delete it ? any help .
    Thanks

    Make sure you donot have any data in cube. If you have some data in cube, then you will not be able to see Delete option.
    Right click on the cube-->Delete data.
    Then double click on the cube>Goto Edit mode> select the IO under that Dimension> right click> now you will be able to see the Delete option (provided you have deleted all the date from Cube)
    Then right click on Dimension-->Delete
    Regards,
    Pavan

  • Not able to delete the data from ODS

    Hi All,
    I have ODS which is having some requests . All the requests are being loaded with full update only. When I am trying to delete the requests from ODS,  out of 4 requests 2 requests have been deleted but rest of them are not at all deleting .
    As I am working in Quality system, So I don't have the access to delete request from Table level like RSODSACTREQ, RSICCONT etc...
    Can you give any clue to delete the remaining 2 requests.
    Thanks,

    Hi kavitha,
    Does the Request has data mart status.IF yes try to delete the request from the respective DSO's.
    and try to delete the request.
    are you deleting the Whole data from DSO ? - right click on the DSO and select deleted data from the context menu.
    Regards
    Prashanth K

  • Not able to Delete the data from Memory card

    Hi all,
    I have bought a new nokia 3120 classic.it is working fine but recently i have received some data from my friend.
    Then suddenly the problem begins like.. when i take a photo.. i am getting error like the image is not in the format and i am not able to save that.And also, the main problem is I am unable to delete the data from my memory card.
    Every time after deleting i am getting the same data.
    Why this happening..is it because of VIRUS?? If so how to delete the virus from my memory card??
    When i contacted the nokia care people in bangalore they are saying that they can offer the service of formatting the memory card??
    Except that my Phone is working fine..the problem is with Memory card!!!
    Please help me...

    you can actually format your memory card first see if you have such option on your phone to format directly from the phone if that is not possible you can always use a card reader and reformat your card using your pc. just understand that all data from that memory card will be lost unless you do a back up of it. if you do a back up and restore the data to the memory card after reformat you might get the same issue so be careful as to what you will decide to do with the data from the card. once you format your card it should all be good unless the card is corrupted itself which can also happen. but first try with the reformat and see if it works out for you. 
    You know what I love about you the most, the fact that you are not me ! In love with technology and all that it can offer. Join me in discovery....

  • Changed e-mail password in windows live account - now cannot send email from iphone.  Have deleted the account from the iphone and reinstalled it - the password is correct - still no luck - any advice ?

    I changed the password in my windows live e-mail account.  My iphone now recieves but will no longer send e-mails.  I have deleted the account from the iPhone - reinstalled it and verified the password is correct.  I recieve a message that "Cannot Send Mail"  "the user name or password ... is incorrect.  Any advice ?

    Hello DRB1962
    Check to make sure that you validated the device within your account on webmail.
    iOS: Setting up Hotmail, Outlook, Live, or MSN email accounts
    http://support.apple.com/kb/HT1694
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Epub books show up in ipad on itunes but do not show up on ipad. Also can not delete the books from ipad in itunes

    epub books show up in ipad on itunes but do not show up on ipad. Also can not delete the books from ipad in itunes

    You have no choice but to lose your data back to the last backup you made.
    Here's how to do the recovery.  Note you may have to try to get into recovery mode more than once to succeed:
    HT1808
    I'm sure next time, you'll be more vigilant about keeping current backups.

  • I am trying to delete songs from itune 11 library and i want it to delete the song from my hard drive as well.  All my songs are in the music folder but not in the itunes folder??  itunes did not prompt me to move file to trash nor is there an option??

    I am trying to delete songs from itune 11 library and i want it to delete the song from my hard drive as well.  All my songs are in the music folder but not in the itunes folder.  itunes did not prompt me to move file to trash nor is there an option to remove file to trash bin.  How can i  delete songs from both the itunes and hard drive at the same time?

    aespinoza2210 wrote:
    could it be in the itunes folder or does it have to be in the itunes media folder, which is within the itunes folder??
    A Espinoza,
    The iTunes Media folder is set in Preferences > Advanced, and is the key to most iTunes folder organizational activities.  So I doubt that the automatic deletion will work for files that are somewhere else within the folder structure.
    However, I have not experimented with that issue in quite a while, so you are welcome to give it a try in iTunes 11. 

Maybe you are looking for

  • How can i move CD audiobooks over to my "audiobooks" category?

    Hello! When I download an audiobook, it is very helpfully automatically moved to the "audiobooks" folder. However, when I import one from CDs, it will not move over to the "audiobooks" folder! Does anyone know how to accomplish that? Thanks in advanc

  • Groups Based On SubGroup Totals

    I'm wondering, without doing a subreport, if you can have Groups that are based on values within subgroups. For example: g:  Warehouse A d:     Item # subtotal:  Count of Item # for Warehouse A g:  Warehouse B d:     Item # subtotal:  Count of Item #

  • Contacts fail to sync

    The iPhone help manual states: If you've set up iTunes to sync contacts automatically, iTunes keeps your contacts up-to-date-whether you make changes on your computer or on iPhone. This is not working. I have a contact (in sync) in both my PC (Vista)

  • Can't reinstall Embedded Lockdown Manager in Windows 8.1 with KB3031044

    Embedded Lockdown Manager (kb2959936) is a build-in feature/update in Windows 8.1 with update 3 (the November 2014 full media refresh image), now MS remove it by KB3031044 I want to reinstall ELM, BUT THE RESOLUTION SEEMS DIDN'T WORK, I can't reinsta

  • Can't Make Any Outgoing Calls After 7.0.2. Update iPhone 5 Verizon???

    After I updated my phone to 7.0.2. I ahve not been able to make outgoing calls. And when I speak into the phone all i cam here is myvoice through the ear piece. I would have o hang up and try again atleast 3 times to get the call to go through. Also