Script delete?

Hi,
I created one test script layout in se71.
now i want to delete this how we can delete this test script.

hi,
goto se71 --->
specify form name---->
change-->
goto form on menu bar---->
delete---->
then pop up appers :Delete Form ZSCRIPT in all languages.
then script layout will deleted.
thanks,
raji

Similar Messages

  • RMAN script- delete archives.

    Is this a solid rman backup script? I am getting varied times for a daily backup- some days it's a normal 1 hour, next day it's 6 hours. I can't find a reason- no errors are being generated, I am told to find out why this server does this and not our other servers- they were all built the same (same hardware/os/database build).
    I am new to RMAN, but here is my "at job" running nightly.
    rman target/
    run {
    backup database plus archivelog;
    delete noprompt obsolete;
    delete expired archivelog all;
    sql 'alter system archive log current';
    exit
    Any reason why RMAN would run longer on certain days? Where do I look to figure this out?

    rman target/
    run {
    backup database plus archivelog;
    delete noprompt obsolete;
    delete expired archivelog all;
    sql 'alter system archive log current';
    exitWhen you use "plus archivelog" then you dont need to issue "'alter system archive log current';" command bcz after taking DB backup it switches the logfile.
    For slowness, I will say check the system state when it misbehave. Check for any locks/wait-events in the DB. Do you run any other process at that time when backup runs?? Check for any other scheduled tasks on that box on that time. Also check alert log for that time period for more information.
    they were all built the same (same hardware/os/database build).Can you tell us what hardware/os/database you are on??
    Daljit Singh

  • Standard program for SCript  delete logs

    Hi experts
    Can any one tell me the standardprogram for deleting script logs. i did some modifications for invoice script
    but its not fetching the values thats why if delete ( reset ) script log then may be it'll work.
    urgent.
    Update me ASAP.
    Thnak you .

    Hi,
    i don't think there is some thing for this. just log off. and log in again .
    why do you think because of logs you are not getting the data. check your program once again.
    Regards
    vijay

  • Script delete tmp folder

    Does anyone have a simple script that allows for deletion of a folder.  Scenario would be a temporary folder stored in specific location like C: drive.  I am able to already delete files inside folder with a simple for statement looping and removing.  However I dont seem to be able to figure out how to delete the actual file.
    Any example is appreciated.

    Thank you for this info.    Indeed I did use the Folder.remove() method thru my own variable.  It turns out I solved it, I had to adjust the path that my variable was pointing too.  Once I did that, it worked correctly.

  • Script delete sub folder's contents

    I was looking for a script in order to delete all subfolder's content .For example Imagin these path :
    d:\mydoc\folder1 
    d:\mydoc\folder2 
    d:\mydoc\folder3
    d:\mydoc\folder4 
    .d:\mydoc\folderN
    I want to delete all content in the folders 1 to 4 .
    is there any suggestion for that?
    thanx a million

    I was looking for a script in order to delete all subfolder's content .For example Imagin these path :
    d:\mydoc\folder1 
    d:\mydoc\folder2 
    d:\mydoc\folder3
    d:\mydoc\folder4 
    I want to delete all content in the folders 1 to 4 .
    To recursively delete all files under d:\MyDoc, you can use this console command:
    del  /s  /q  d:\MyDoc\*.*
    To recursively delete all files under d:\MyDoc\Folder1 you can use this command:
    del  /s  /q  d:\MyDoc\Folder1\*.*
    To delete only files in subfolders called "folderX" you need to use a loop as recommended by JRV.

  • CF 8 uninstall script deletes server files

    We desperately need any help or guidance anyone can offer!
    We are using Linux Red Hat Enterprise 4 w/ cPanel and ColdFusion 8 Enterprise (version 8.01).  Plain vanilla install of Linux, no modifications. CF8 multiserver with Apache web server install runs clean, though the auto start script "coldfusion8multi" would not run (missing shell parameter as described here:  http://ianwinter.co.uk/2008/07/21/cf8-jrun-init-script-error/ ).  System and CF runs fine after install.
    Then when you run the CF8 uninstall script, it says it runs fine and completes but it deletes everything in the /bin directory.  You can't even run something as simple as ls for find.  This has happened twice.  No option but to format the drives and reinstall EVERYTHING from scratch again.
    This thread also mentions this problem:
    http://www.houseoffusion.com/groups/cf-linux/thread.cfm/threadid:1089
    I also would very much appreciate any help, thoughts, suggestions or direction.
    I also highly recommend everyone backup their system before you ever run "uninstall" from CF8 in case you get this full system uninstall "feature" also.

    We desperately need any help or guidance anyone can offer!
    We are using Linux Red Hat Enterprise 4 w/ cPanel and ColdFusion 8 Enterprise (version 8.01).  Plain vanilla install of Linux, no modifications. CF8 multiserver with Apache web server install runs clean, though the auto start script "coldfusion8multi" would not run (missing shell parameter as described here:  http://ianwinter.co.uk/2008/07/21/cf8-jrun-init-script-error/ ).  System and CF runs fine after install.
    Then when you run the CF8 uninstall script, it says it runs fine and completes but it deletes everything in the /bin directory.  You can't even run something as simple as ls for find.  This has happened twice.  No option but to format the drives and reinstall EVERYTHING from scratch again.
    This thread also mentions this problem:
    http://www.houseoffusion.com/groups/cf-linux/thread.cfm/threadid:1089
    I also would very much appreciate any help, thoughts, suggestions or direction.
    I also highly recommend everyone backup their system before you ever run "uninstall" from CF8 in case you get this full system uninstall "feature" also.

  • All scripts deleted

    Earlier today I opened story to try and do some work to a script that I had been working on for the last couple months. However, when I opened Story, I found that every single one of my scripts was deleted. This is really making me angry, as I had a lot of scripts and personal projects on there, and now they're all gone. Why is this happening?

    Hi,
    The scripts should be there. Can you share your adobe id with us at DL-AdobeStory-support<at>adobe<dot>com and we'll take a look. Do you use any other adobe id ?
    Regards,
    Sunny

  • SAP Script - delete paragraph between two lines or move address one line up

    Hi all,
    i have a problem concerning SAPscript and formating.
    In the address window i have an include, which provides a text in a line. after that i have a command line with address and paragraph, which sorts and formats the address. Problem is that there is a gap between my Text from the Include and the address. Is there a way to move the address one line up or any other way to delete the paragraph there?
    SAPscript looks like this:
    include ....
    endif.
    adress paragraph zz
    name  Testname
    street teststreet
    Postalcode 98788
    City  Town
    Print Form:
    Text from the include
                                          <----
    how can I get rid of this empty line?
    Testname
    teststreet
    98788 Town
    Any Suggestions?
    Thanks,
    Denis

    Hi there,
    no results yet. nothing worked so far. What does PB mean?
    The CODE looks as follows:
    /: if ....
    /: include ........ new-paragraph SA
    /: endif
    /: if ....... OR ....
    /: address Paragraph AS
    /: name  ......
    /: street ......
    /: endaddress
    Print::
    Text blablabla
                                  <---- empty line
    Name .....
    Street .....
    The include has no empty line in the end.
    I have no more clues how to delete the empty line in between the address and the include text.
    regards,
    denis

  • Trouble with a script that deletes event in iCal

    Used this script over the summer and it worked fine. Can't figure out the issue now, but it isn't working. Here is a few lines of the output I get and then the error I get is at the bottom. I'll post the full script at the bottom of this posting. Error # -1728??? File doesn;t exist?
    Thanks,
    dan
    get summary of item 2 of every event of calendar "Untitled"
    --> "Enviro C Lab Period 3-4"
    get summary of item 2 of every event of calendar "Untitled"
    --> "Enviro C Lab Period 3-4"
    get description of item 2 of every event of calendar "Untitled"
    --> missing value
    get status of item 2 of every event of calendar "Untitled"
    --> none
    get start date of item 2 of every event of calendar "Untitled"
    --> date "Tuesday, April 26, 2011 10:30:00 AM"
    get summary of item 2 of every event of calendar "Untitled"
    --> "Enviro C Lab Period 3-4"
    get end date of item 2 of every event of calendar "Untitled"
    --> date "Tuesday, April 26, 2011 11:55:00 AM"
    get allday event of item 2 of every event of calendar "Untitled"
    --> false
    make new event at end of every event of calendar "Untitled" with properties {status:none, start date:date "Tuesday, April 26, 2011 10:30:00 AM", summary:"Enviro C Lab Period 3-4", end date:date "Tuesday, April 26, 2011 12:25:00 PM", allday event:false}
    --> event id "AF27EFB6-3949-4977-A153-1EFE31FD8206" of calendar id "0EDA6DFD-52AD-4E7F-BC81-984CFF7D3F39"
    delete item 2 of every event of calendar "Untitled"
    --> error number -1728 from item 2 of every event of calendar "Untitled"
    Result:
    error "iCal got an error: Can’t get item 2 of every event of calendar \"Untitled\"." number -1728 from item 2 of every event of calendar "Untitled"
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into a HTML editor">
    tell application "iCal"
    repeat with theEvent in (events of calendar "Untitled")
    set control to {}
    set control to summary of theEvent
    set AppleScript's text item delimiters to space
    set theSummary to summary of theEvent
    set textSummary to text items of theSummary
    if the third item of textSummary is "Lab" then
    if the fifth item of textSummary is "5-6" then
    get theEvent
    set theDescription to description of theEvent
    set theStatus to status of theEvent
    set theStartDate to (start date of theEvent) - 0.5 * hours
    set theSummary to summary of theEvent
    set theEndDate to end date of theEvent
    set theAllDay to allday event of theEvent
    set newEvent to (make new event at end of events of calendar "Untitled" with properties {status:theStatus, start date:theStartDate, summary:theSummary, end date:theEndDate, allday event:theAllDay})
    set oldEvent to ""
    set theEvent to oldEvent
    get theEvent
    delete theEvent
    end if
    if the fifth item of textSummary is "3-4" then
    get theEvent
    set theDescription to description of theEvent
    set theStatus to status of theEvent
    set theStartDate to start date of theEvent
    set theSummary to summary of theEvent
    set theEndDate to (end date of theEvent) + 0.5 * hours
    set theAllDay to allday event of theEvent
    set newEvent to (make new event at end of events of calendar "Untitled" with properties {status:theStatus, start date:theStartDate, summary:theSummary, end date:theEndDate, allday event:theAllDay})
    delete theEvent
    end if
    end if
    end repeat
    end tell
    </pre>

    Hello
    The posted event log indicates some inconsistent behaviour of iCal in referencing item 2 of every event. I.e., it could access it first and failed to do so after a new event is created. Scent of bug here. Or possibly inserting ugly small delay after event creation might let the script delete the newly created event...
    Anyway, the 'by index' reference form of object must be used very carefully when object can be deleted or added dynamically.
    Also I wish to add that it is not recommended to use an object specifier, that returns list of objects, as the base list for repeat statement, such as :
    --CODE1
    -- # not recommended
    repeat with theEvent of (events of calendar "Untitled")
    -- omitted
    end repeat
    --END OF CODE1
    Instead, you'd better get the list first and use it, such as :
    --CODE2
    -- # recommended
    repeat with theEvent of (get events of calendar "Untitled")
    -- omitted
    end repeat
    --END OF CODE2
    The reason is as follows.
    In CODE1, the iterator is assigned as item k of events of calendar "Untitled", where k iterates from 1 to count of events of calendar "Untitled" at the time of loop entrance. The problem is that this list of events is dynamic list which may change when event is deleted or added, and consequently item k as iterator may no longer refer to the item k of the original collection of events.
    In CODE2, the iterator is assigned as item k of a static list which is obtained by statement 'get events of calendar "Untitled" at the time of loop entrance. If the event object is returned in 'by ID' reference form (or any form other than that depends upon index in the container), item k as iterator is guaranteed to refer to the item k of the original collection of events whether or not collection changes.
    Thus you may try something like this :
    --SCRIPT
    (* not tested *)
    tell application "iCal"
    tell calendar "Untitled"
    repeat with theEvent in (get its events) -- # get the objects list
    set theEvent to theEvent's contents -- # dereference each once
    set AppleScript's text item delimiters to {space}
    set textSummary to text items of summary of theEvent
    set AppleScript's text item delimiters to {""} -- # reset astid
    if item 3 of textSummary is "Lab" then
    if item 5 of textSummary is "5-6" then
    tell theEvent
    set prop to {¬
    start date:(its start date) - 0.5 * hours, ¬
    end date:its end date, ¬
    status:its status, ¬
    summary:its summary, ¬
    allday event:its allday event}
    end tell
    make new event at end of events with properties prop
    delete theEvent
    end if
    if item 5 of textSummary is "3-4" then
    tell theEvent
    set prop to {¬
    start date:its start date, ¬
    end date:(its end date) + 0.5 * hours, ¬
    status:its status, ¬
    summary:its summary, ¬
    allday event:its allday event}
    end tell
    make new event at end of events with properties prop
    delete theEvent
    end if
    end if
    end repeat
    end tell
    end tell
    --END OF SCRIPT
    Hope this may help,
    H

  • Error Script when try to delete records under condition

    Dear Members
    I have a problem when i try to delete a record at MDX script into BOC
    I have the follow problem
    TIME FLOW C_DATASRC ENTITY INTCO CONSGROUP RPTCURRENCY C_CATEGORY C_ACCT DIVISION SEGMENT SIGNDATA
    2011.FEB VALID INPUT CIA12 I_CCO11 NON_GROUP GC C_110 2204002 1014 S999 17.272.941,9500000
    2011.FEB CCO11 INPUT CIA12 I_NONE NON_GROUP GC C_110 1205002 1014 S999 1,4870000-
    2011.FEB VALID INPUT CIA12 I_CCO11 NON_GROUP GC C_110 1205002 1014 S999 17.272.941,9500000-
    2011.FEB CCO11 INPUT CIA12 I_NONE NON_GROUP GC C_110 2204002 1014 S999 34.545.885,3870000
    Condition
    2011.FEB NA INPUT CIA12 I_CCO11 NON_GROUP GC C_110 NA 1014 S999 31.405.349,0000000-
    IF C_ACCT.NA = -31.405.349,00 is LESS than 0 delete value of C_ACCT2204002  (17.272.941,95 and 34.545.885,387)
    IF C_ACCT.NA = -31.405.349,00 is Greater than 0 delete value of C_ACCT1205002 (-1,487 and -17.272.941,95)
    I get the record 31.405.349,0000000- from de account NA, with this record i try to determine if i delete the valoe of account 1205002 or 2204002, but my script delete the 4 values.
    I replaced the 0 for 5 and work, but i what to delete the records
    2011.FEB VALID INPUT CIA12 I_CCO11 NON_GROUP GC C_110 2204002 1014 S999 17.272.941,9500000
    2011.FEB CCO11 INPUT CIA12 I_NONE NON_GROUP GC C_110 2204002 1014 S999 34.545.885,3870000
    And leave
    2011.FEB CCO11 INPUT CIA12 I_NONE NON_GROUP GC C_110 1205002 1014 S999 1,4870000-
    2011.FEB VALID INPUT CIA12 I_CCO11 NON_GROUP GC C_110 1205002 1014 S999 17.272.941,9500000-
    // VPP
    // BORRA REGISTRO DUPLICADO
    *XDIM_MEMBERSET CONSGROUP = NON_GROUP
    *XDIM_MEMBERSET C_ACCT = NA, 1205002, 2204002
    *XDIM_MEMBERSET C_CATEGORY = C_110
    *XDIM_MEMBERSET C_DATASRC = INPUT
    *XDIM_MEMBERSET DIVISION = 1014
    *XDIM_MEMBERSET ENTITY = CIA12
    *XDIM_MEMBERSET INTCO = I_NONE,I_CCO11
    *XDIM_MEMBERSET FLOW = NA,VALID,CCO11
    *XDIM_MEMBERSET RPTCURRENCY = GC
    *XDIM_MEMBERSET SEGMENT = S999
    *XDIM_MEMBERSET TIME = %TIME_SET%
    *WHEN FLOW
    *IS "NA"
    *WHEN C_ACCT
    *IS "NA"
    *WHEN INTCO
    *IS "I_CCO11"
    //Elimina Diferencia
    *REC(EXPRESSION=((%VALUE% > 0) * 0), C_ACCT = "1205002", FLOW = "CCO11", INTCO = "I_NONE")
    *REC(EXPRESSION=((%VALUE% < 0) * 0), C_ACCT = "2204002", FLOW = "CCO11", INTCO = "I_NONE")
    //Elimina Validador
    *REC(EXPRESSION=((%VALUE% > 0) * 0), C_ACCT = "1205002", FLOW = "VALID", INTCO = "I_CCO11")
    *REC(EXPRESSION=((%VALUE% < 0) * 0), C_ACCT = "2204002", FLOW = "VALID", INTCO = "I_CCO11")
      *ENDWHEN
    *ENDWHEN
    *ENDWHEN
    *COMMIT

    instead of %VALUE % use MDX  ie
    *WHEN FLOW
    *IS "NA"
    *WHEN C_ACCT
    *IS "NA"
    *WHEN INTCO
    *IS "I_CCO11"
    //Elimina Diferencia
    *REC(EXPRESSION=(([INTCO].[I_CCO11] > 0) * 0), C_ACCT = "1205002", FLOW = "CCO11", INTCO = "I_NONE")
    *REC(EXPRESSION=(([INTCO].[I_CCO11]  < 0) * 0), C_ACCT = "2204002", FLOW = "CCO11", INTCO = "I_NONE")
    //Elimina Validador
    *REC(EXPRESSION=(([INTCO].[I_CCO11]  > 0) * 0), C_ACCT = "1205002", FLOW = "VALID", INTCO = "I_CCO11")
    *REC(EXPRESSION=(([INTCO].[I_CCO11]  < 0) * 0), C_ACCT = "2204002", FLOW = "VALID", INTCO = "I_CCO11")
    u3000u3000*ENDWHEN
    *ENDWHEN
    *ENDWHEN
    hope this helps

  • Trying to delete multiple files with very basic VBS script

    Good day,
    I've found a script and modified it for an input box to accommodate multiple files being deleted but I'm not sure if it is capable or if I'm just using the wrong syntax within the input box:
    Script:
    Set obj = CreateObject("Scripting.FileSystemObject") 'Calls the File System Object 
    obj.DeleteFile inputbox("Enter files and path to be deleted") 'Deletes the file throught the DeleteFile function
    When prompted and I put just one file path to the file I want deleted it works, but if I put in multiple files and their paths either separated by colan, semi colan or space, it says "bad file path or number".  If anyone knows of a VBS
    or powershell script that references a text file or .csv spreadsheet that would be sooper handy!
    Many thanks - RP
    berto

    Thank you Bill!
    Sounds like I need a different method all together.  I found this script that references a .csv file with the folder paths and file names; does it seem legit to you guys?  Also for files that are past the 256 UNC character length, is there a work
    around for that?
    12
    $files = Get-Content "C:\scripts\delete-files.csv"
    13
    14
    foreach ($file in $files) {
    15
        Remove-Item -Path
    $file -force
    16
    17
    18
    write-host -foregroundcolor yellow "Delete action complete"
    berto
    Try this to see:
    $files = Get-Content "C:\scripts\delete-files.csv"
    foreach ($file in $files) {
    Remove-Item -Path $file -force -WhatIf
    write-host -foregroundcolor yellow "Delete action complete"
    ¯\_(ツ)_/¯

  • Bizarre display/UI behavior scripting Entourage 2004

    Hello, Everyone!
    I’ve been working on this script a long time... it is designed to be used with Microsoft Entourage. In order to slim down the email database size, it saves attachments in a specified path (~/Documents/Archived Attachments/[current year]/[current date]), links the email to the newly saved version of the attachment, and then finally (assuming the save was successful) deletes the attachment from the email. I have a nearly identical version working with the older version of Entourage (version X), and it runs fine (mostly). However, this one, for the 2004 version of Entourage, has a really strange issue, which I can not figure out:
    As the script is running, even though no windows are told to open (in fact, the script closes ever Entourage window before it begins the archiving procedure), little portions of message windows start appearing here, there & everywhere on the screen. Not complete windows, just small pieces of windows. You can not close them by any normal means, as they are not normal windows. The only way I’ve found to get rid of all these little window pieces that show up is to use Exposé. Hit F9, then F9 again, and all the artifacts that were there are gone... but new ones show up shortly again.
    The code is below... and it is a ‘SAFE’ version. That is, the line where the script deletes attachments from your email is commented out, just in case anyone would be willing to try out the script to help me out. If you do, please do make a backup copy of your current Entourage identity, just in case, though I can say I’ve done extensive testing and have never had a lost/damaged email, attachment, database, or what have you.
    Can anyone tell me what I’m missing?
    Thanks so much!
    Features to add:
    Link archived attachment(s) to the message it came from. **DONE**
    Progress box (better yet, a bar) with constantly updating attachment count.
    Bugs:
    1) Throughout script, fragments of message windows appear for no apparent reason!
    Pre-Production Changes:
    1) Set duration before attachments are archived (6 months?)
    display dialog "Entourage is about to archive your attachments. You may continue working in other applications, but it is best if you can avoid using Entourage." & return & return & "Another message like this one will come up when the archiving process is complete." buttons {"Go!"} default button 1
    --declaration of global variables:
    global totalAttachmentCount
    --We're starting at 0 attachments archived.
    set totalAttachmentCount to 0
    --Generate the appropriate path to save attachments in:
    set svPath to createSavePath()
    tell application "Microsoft Entourage"
    try
    close every window
    on error errMsg number errNum
    display alert "Error: Failed close every window command." & return & errMsg & return & errNum
    end try
    try
    set outerFolders to every folder
    on error errMsg number errNum
    display alert "Error: Failure to set outerFolders to every folder." & return & errMsg & return & errNum
    end try
    try
    set outerFolderCount to (count outerFolders)
    on error errMsg number errNum
    display alert "Error: Failure to set outerFolderCount to (count outerFolders)." & return & errMsg & return & errNum
    end try
    try
    set todaysDate to (current date)
    my archiveandsave(svPath, outerFolders, outerFolderCount, todaysDate) --Main routine call
    set doneDate to (current date)
    set timeToRun to (doneDate - todaysDate)
    display dialog "All done!" & return & return & totalAttachmentCount & " attachments were archived in just " & timeToRun & " seconds." buttons {"Killer"} default button 1 with title "Spyder Attachment Archiver"
    open main window
    on error errMsg number errNum
    display alert "Error: Failure in archiveandsave sub call." & return & errMsg & return & errNum
    end try
    end tell
    -- SUBROUTINES SUBROUTINES SUBROUTINES SUBROUTINES
    on archiveandsave(savePath, outsideFolders, outsideFolderCount, todaysDate)
    tell application "Microsoft Entourage"
    repeat with i from outsideFolderCount to 1 by -1
    try
    set theFolder to item i of outsideFolders
    on error errMsg number errNum
    display alert "Failure to set theFolder to item i of outsideFolders." & return & errMsg & return & errNum
    end try
    try
    my extract_attachments(theFolder, savePath, todaysDate)
    on error errMsg number errNum
    display alert "Failure in extract_attachments call." & return & errMsg & return & errNum
    end try
    end repeat
    end tell
    end archiveandsave
    on extract_attachments(thisFolder, save2Path, todaysDate)
    set bogusPath to save2Path & "BOGUS:"
    tell application "Microsoft Entourage"
    try
    set thisFolderCount to (count folders of thisFolder)
    on error errMsg number errNum
    display alert "Error - unable to set thisFolderCount to (count folders of thisFolder). Setting folder count to 0." & return & errMsg & return & errNum & return & "Folder Name: " & (name of thisFolder)
    set thisFolderCount to 0
    end try
    try
    if thisFolderCount is greater than 0 then
    try
    set innerList to every folder of thisFolder
    set innerListCount to (count innerList)
    on error errMsg number errNum
    display alert "Failed to set innerList to every folder of thisFolder, or to set innerListCount to (count innerList)." & return & errMsg & return & errNum
    end try
    repeat with m from innerListCount to 1 by -1
    try
    set innerFolder to item m of innerList
    my extract_attachments(innerFolder, save2Path, todaysDate)
    on error errMsg number errNum
    display alert "Failure in recursive extract_attachments call." & return & errMsg & return & errNum
    end try
    end repeat
    end if
    on error errMsg number errNum
    display alert "Failure in repeat digging into folders, recursively calling extract_attachments subroutine." & return & errMsg & return & errNum
    end try
    try
    try
    set folderMsgs to every message of thisFolder
    set messagesCount to (count messages of thisFolder)
    on error errMsg number errNum
    display alert "Failure to set folderMsgs to every message of thisFolder." & return & errMsg & return & errNum
    end try
    repeat with k from messagesCount to 1 by -1
    try
    set thisMsg to item k of folderMsgs
    on error errMsg number errNum
    display alert "Failure to set thisMsg to item k of folderMsgs." & return & errMsg & return & errNum
    end try
    try
    set howOldIsIt to ((time received) of thisMsg)
    on error errMsg number errNum
    display alert "Failure to set howOldIsIt to ((time received) of thisMsg)." & return & errMsg & return & errNum
    try
    set howOldIsIt to ((time sent) of thisMsg)
    on error errMsg number errNum
    display alert "Failure to set howOldIsIt to ((time sent) of thisMsg)." & return & errMsg & return & errNum
    set howOldIsIt to current date
    end try
    end try
    try
    try
    set attachmentCount to (count attachments of thisMsg)
    on error errMsg number errNum
    set attachmentCount to 0
    display alert "Failure to set attachmnetCount to (count attachments of thisMsg). Setting attachment count to 0." & return & errMsg & return & errNum
    end try
    -- CHANGE THIS FOR PRODUCTION VERSION FROM 6 MINUTES TO 6 MONTHS OR 9 MONTHS!!!!!!!!!
    if (attachmentCount is greater than 0) and ((((current date) - (howOldIsIt))) > (minutes * 6)) then
    try
    set msgAttachments to every attachment of thisMsg
    end try
    repeat with l from attachmentCount to 1 by -1
    try
    set thisAttachment to item l of msgAttachments
    on error errMsg number errNum
    display alert "Failure to set thisAttachment to item l of msgAttachments." & return & errMsg & return & errNum
    end try
    try
    save thisAttachment in bogusPath
    set totalAttachmentCount to totalAttachmentCount + 1
    set attachName to name of thisAttachment
    set safeAttachName to my replacecolons(attachName)
    set newFileLocation to (save2Path & safeAttachName)
    link thisMsg to alias (newFileLocation)
    --Below is the DELETE ATTACHMENT line... please un-comment this for real use.
    --delete thisAttachment
    on error errMsg number errNum
    display alert "Failed to save thisAttachment in bogusPath." & return & "Message: " & (name of thisMsg) & return & "Attachment: " & (name of thisAttachment) & return & errMsg & return & errNum
    end try
    set thisAttachment to null
    end repeat
    end if
    on error errMsg number errNum
    display alert "Failure:" & return & errMsg & return & errNum
    end try
    end repeat
    on error errMsg number errNum
    display alert "Failure:" & return & errMsg & return & errNum
    end try
    end tell
    end extract_attachments
    --This subroutine simply creates and returns the path for saving attachments to
    on createSavePath()
    set todaysDate to (current date)
    --Format months for save path
    if (month of (todaysDate) as integer) < 10 then
    set theMonth to 0 & (month of (todaysDate) as integer) as Unicode text
    else
    set theMonth to (month of (todaysDate) as integer) as Unicode text
    end if
    set theDay to day of (todaysDate) as Unicode text
    set theYear to year of (todaysDate) as Unicode text
    set theDate to ((theYear) & "_" & (theMonth) & "_" & (theDay)) as Unicode text
    -- Try to create Archived Attachments folder, simply fails out if it already exists.
    set docsPath to (path to documents folder)
    try
    tell application "Finder"
    make new folder at docsPath with properties {name:"Archived Attachments"}
    end tell
    end try
    --Create a folder for the year
    try
    do shell script "mkdir ~/Documents/Archived\\ Attachments/" & theYear
    end try
    --Create a folder for today's archive.
    try
    do shell script "mkdir ~/Documents/Archived\\ Attachments/" & theYear & "/" & theDate
    end try
    set svPath to ((docsPath as text) & "Archived Attachments:" & theYear & ":" & theDate & ":") as text
    return svPath
    end createSavePath
    --This routine borrowed from Paul Berkowitz's 'Save Attachments 2004'
    to replacecolons(someText)
    set AppleScript's text item delimiters to {":"}
    set textItems to text items of someText
    set AppleScript's text item delimiters to {"-"}
    set someText to textItems as Unicode text
    set AppleScript's text item delimiters to {"/"}
    set textItems to text items of someText
    set AppleScript's text item delimiters to {"-"}
    set someText to textItems as Unicode text
    set AppleScript's text item delimiters to {""}
    return someText
    end replacecolons
    Mac OS X (10.4.10)
    MacBook Core Duo (2GHz)   Mac OS X (10.4)  

    Hi,
        i do not have the solution but there is some thigs that can help.
        You can use "Run\Stack Trace"(CVI/IDE menu) to check the way of program flow to actual (break) point.This can be useful to check if Ring callbak is called in time when your plot function i s already in run(assuming you call ProcessSystemEvents() or similar)
      When you found where problem is, you can eventualy protect you function or callback to be called in only one instance by something like this:   (not multithread safe)
    void func()
    static int runonce=0;
    if (runonce!=0)return;
    runonce=1;
    //... some code
    //... some code
    runonce=0;
    return;
       be careful to insert runonce=0; before any return; in function;
    Two tips about changed value of Ring:
        a)if control callback return value 1 , some event is swallowed and control change its value back like before the user click.
        b)maybe on some other place in program you call SetCtrlVal/SetCtrlAttribute with wrong panel handle/control value
           It seems to me that you use "Tab" control, maybe it is related to it, do you corectly get panel handle by GetPanelHandleFromTabPage on all places?

  • I deleted my contacts by mistake and can't restore them from time capsule

    Please Help!!
    I deleted around 4000 contacts by mistake with a script deleting the annoying duplicates that come with cloud syncs.
    I can't restore them from my time capsule, I have read other posts and they suggest to copy the contacts folder in a back up from my time machine, Time Machine volume -> Users ->Yued1 -> Library -> Application Support -> CONTACTS, coping the folder in to my desktop and deleting the one in my computer all with out internet connection so iCloud won't cause problems, export the contacts, connect to the internet and then once connected let iCloud do its thing and then import the exported contacts, it all sounds good but when I mount my time capsule volume I get the folder backups.backupdb>Yued's Macbook Pro>(The backup folder of the date I choose)>Macintosh HD>Users>yued1 but Inside yued1 there is no Library folder, I did the command in terminal to show all files and folders, terminal accepted it relaunched finder but still won't see library, the only folder in my time capsule with library, is inside Macintosh HD but doesn't have a contacts folder inside application support.
    I have OS 10.9.4 processor 2.2 GHz i7 and 4GB 1333 MHz DDR3
    I don't know what time capsule I have except that is a 1TB from 2011
    I really appreciate your time helping me out. thank you!

    Thanks for your help,
    It takes forever to go from one window to another back in time, once I get to the one I want and click restore It goes back to my desktop as it would when restoring something else but the contacts stay the same...
    I do see all the deleted contacts in the snapshots, but can't restore them

  • I deleted my contacts and can't restore them from time capsule

    Please Help!!
    I deleted around 4000 contacts by mistake with a script deleting the annoying duplicates that come with cloud syncs.
    I can't restore them from my time capsule, I have read other posts and they suggest to copy the contacts folder in a back up from my time machine, Time Machine volume -> Users ->Yued1 -> Library -> Application Support -> CONTACTS, coping the folder in to my desktop and deleting the one in my computer all with out internet connection so iCloud won't cause problems, export the contacts, connect to the internet and then once connected let iCloud do its thing and then import the exported contacts, it all sounds good but when I mount my time capsule volume I get the folder backups.backupdb>Yued's Macbook Pro>(The backup folder of the date I choose)>Macintosh HD>Users>yued1 but Inside yued1 there is no Library folder, I did the command in terminal to show all files and folders, terminal accepted it relaunched finder but still won't see library, the only folder in my time capsule with library, is inside Macintosh HD but doesn't have a contacts folder inside application support.
    I have OS 10.9.4 processor 2.2 GHz i7 and 4GB 1333 MHz DDR3
    I don't know what time capsule I have except that is a 1TB from 2011
    I really appreciate your time helping me out. thank you!

    Thanks for your help,
    It takes forever to go from one window to another back in time, once I get to the one I want and click restore It goes back to my desktop as it would when restoring something else but the contacts stay the same...
    I do see all the deleted contacts in the snapshots, but can't restore them

  • [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

Maybe you are looking for

  • SwapImage with Set cookie  - Get Cookie , Optimizing for internet explorer ?

    Hello I have a soon- to -be -published website. The homepage, index has quite a lot of session - cookies on it, which are connected to swapimage behaviour. They work fine in firefox, opera, Safari and chrome, but in Internet explorer the swapping of

  • Creating and populating portal domain

    I have created a portal domain on 8.1 platform using configuration wizard the problem is that I the domain is empty and I need thelibraries available on the sample portal how I am supposed to get to the my portal domain since I thought they would be

  • Uploading iWeb pages to different iDisk

    Hi, I have a family pack .mac and iLife and want to add a iWeb created site to one of the sub accounts rather than the main account. Does anyone know how to do it? Thanks eMac(s), 12" Powerbook   Mac OS X (10.4.4)  

  • Panasonic SDR-H21 HDD device --- error in setup

    hi there - please help ---- I just bought Final Cut Express 4 - I use a Panasonic SDR-H21 HDD& SD Card in my Final Cut setup I choose all-formats or DV/Panasonic DVCPRO ---- I choose PAL (we use PAL) as soon as I switch on my Panasonic it opens IPHOT

  • Adobe Flash CS4 export image default format and dialogue default option

    Dear Adobe users and programmers, I  would like to ask You whether there's a way where I can set default  format of exported image from Adobe Flash CS4. Here's image describing  what I mean: And than I want to have default dialogue window set to "Yes