Save File on Flash without delete last one with EEM

Hi.
I trying to configure an EEM for save the "ip cache flow" on Flash memory, but when the threshold is reached repeatedly the last file saved is "overwrite"... I need save a copy for every event.
Somebody could help me please, its a little urgent   :P
Thanks..

Here is some Tcl code that you can add to your EEM policy to do file rotation.  This assumes all files will be written to flash:flows and all files are named respective to date so that when you sort, the oldest file is last:
set files [lsort [glob flash:flows/*]]
set size 0
foreach file in $files {
    set size [expr $size + [file size $file]]
if { $size > $threshold } {
    file delete -force [lindex $files end]

Similar Messages

  • I am moving all my iphoto pictures to seperate folders outside of iphoto.  I have found iphoto slighlty cumbersome.  After I move all pictures from iphoto to a separate file how can I delete all the iphoto photos without deleting the ones in the file?

    I am moving all of my iphoto pictures into seperate folders becuase iphoto is great, but a bit cumbersome when I need to transfer all the pictures to a external drive.
    1) After I move all pictures, how can I delete the iphoto pictures without destroying the ones I have in files
    2) how can I ensure that I have sucessfully captures all the iphoto files so when I delelte from iphoto I have not forgotten any
    3) is there a way to determine what duplicate pictures I have?
    Thanks!

    If you Control click on the iPhoto Library, you'll see a list of folders - one named "Masters". Inside of this folder are all of your original, high-res photos. You can copy them to other folders if you like.
    You can't delete iPhoto pics without deleting the ones in the iPhoto Library.
    You can copy all of your Masters pics out of the Library, ensuring that you won't forget any.
    I don't know of anyway to determine if there are duplicate photos - most (if not all) have a unique name assigned.
    Good luck,
    Clinton

  • I have one playlist on iphone4. how can i add new playlist without deleting old one. i do not have old playlist in itunes any more.

    I have one playlist on iphone4. how can i add new playlist without deleting old one. i do not have old playlist in itunes any more.When i try to sync iphone with itunes it says that this action will remove my old playlist and all songs.

    "it says that this action will remove my old playlist and all songs."
    Are you connecting to a different iTunes library than you normally connect to?  That will erase the songs and playlists since the iPhone can't be connected to multiple libraries even if it is in manual sync mode.
    If you no longer have access to the original library that your iPhone calls 'home', then the only way to save the playlist (and the songs on your iPhone) would be to use a 3rd party application to extract your iPhone contents to this new iTunes library you're trying to connect to.

  • How do I copy photos from my Mac to my iPad without deleting the ones that are there?

    I understand how to sync photos from my iPhoto library to my iPad. I want to copy photos from my Mac to the iPad without syncing, because syncing deletes everything on the iPad that isn't included in my sync selections. In addition,I have several iPhoto libraries and want to copy photos from each of them to the iPad. A further issue is that apparently photos can be synced from only one computer to the iPad -- how would I copy photos from a different computer? (What happens when I buy a new Mac?) I am extremely experienced with Mac, iPhoto/Aperture, iPad, etc. A year or two ago I transferred 1000 photos to the iPad but I don't remember how, and it was probably done with my previous Mac. Now I just want to add some recent photos without deleting the ones that are there. Bottom line: is there a way to add photos to an iPad without syncing and losing what's there?

    You can still sync the photos and keep the photos that are already on the device. You have to include all of the albums or events in the pictures folder that you sync from. If you are using iPhoto, select that in the Sync Photos from drop down menu and then select all of the albums or events that you want to sync. Make sure to check Selected Albums, events, faces and automatically include (no events). Using that option will allow you to choose exactly which albums and events to sync.
    You have to remember that all photos must be included in every sync so you cannot sync photos from iPhoto today and then try to sync photos from another folder tomorrow, or you will erase all of the photos that were synced from iPhoto. You need to maintain one main Photos syncing folder for the photos that you want to transfer to the iPad. You can have subfolders within that one main folder and you can selectively sync those subfolders. You just have to place all of the photos that you want to sync into one main iPad syncing photos folder.
    There are WiFi transfer apps that allow you to transfer photos to the iPad without having to sync with iTunes. I use this one. This app (and others like it) will allow you to use multiple computers to transfer photos.
    Wireless Transfer App Easily send photos to iPhone/iPad ...

  • I have over 2000 photos on my iPad2. I have backed them up to my PC. How can I delete most of these from my iPad without deleting them one at a time?

    I have over 2000 photos on my iPad2. I have backed them up to my PC. How can I delete most of these from my iPad without deleting them one at a time?

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

  • I have many duplicates of songs in my library, how do I consolidate them into one copy each without deleting each one individually?

    I hae many duplicates of songs in my library how do i consolidate them into one copy each without deleting each one individually?

    yea... i faced this problem many a time... have run apple sceipts to delete these songs....
    you download these scripts from the link below.... jus follow thw instructions... and you are free from duplicates
    http://dougscripts.com/apps/dupinapp.php
    hope this helps..!

  • Now that Apple no longer supports AppleWorks, how can I change a lot of AppleWorks files to Pages, without doing them one at at time?

    Now that Apple no longer supports AppleWorks, how can I change a lot of AppleWorks files to Pages, without doing them one at at time?

    Maybe these?
    https://discussions.apple.com/thread/3162022?start=0&tstart=0
    http://macscripter.net/viewtopic.php?id=19987
    But why if you're running 10.6 do you need to do this? AW works fine in 10.6 with Rosetta.
    (BTW,  you're in the older iMac PPC forum.)

  • I have problem since I download fire fox 4 it does'nt remember my windows live ID only the last one with are 4 different people that use the computer

    Question
    I have problem since I download fire fox 4 it doesn't remember my windows live ID, only the last one with are 4 different people that use the computer

    Such a feature is stored in a cookie. Firefox only keeps one set of cookies for all open tabs. So only the last user is remembered.
    You can look this extension if you want to sign on with different identities at the same time:
    * Multifox: http://br.mozdev.org/multifox/ (for Firefox 4 use this link: Firefox 4? Try Multifox 2 Beta 1!)

  • How to sync pdf  files without deleting existing ones

    Hello Everyone,
    I am new to the apple world and i recently bought an iphone 5 and an ipad mini. i am loving using them but i am facing a problem everytime i try to sync media. whenever i upload new stuff its automatically deleting the existing stuff. how do i upload new stuff ( media and pdf's) without deleting the existing ones ??
    NEED HELP ASAP !!!
    Thank you.

    "Upload"? What does that mean to you? Syncing form iTunes? Is that what you mean? If it is what you mean, you need to select all of the content that you want to sync by setting sync preferences and once you do that, your media should not be deleted every time that you sync.
    However if you are referring to Photos as media, Yoy can only sync one folder of photos from your computer at a time. Of you switch to another photos folder, the existing photos on the iPad will be erased.
    So if you would explain exactly what you mean and what you are doing, it will be easier to offer a solution.

  • HT5839 Save files under Tags without single virtual location

    Today I was wondering about the OS X Mavericks tagging system. Sometimes I try to save a file, such as an image, in the TAGS section of the finder window in Mac OS X. As soon as I do so, because it is not a location rather a search algorithm that searches for files in multiple locations, because the computer to hang. I wanted to ask if you can actually save the file as a tag,and if not then why allow it appear available in the save dialog pop-up window.it appears within the save dialog interface, and so I tried it out various times. My computer just hangs and Finder becomes unusable.my Logic says, it cannot be possible to save the file under tags, unless OS X has programmed itself to save the files and SQL data instead of as an actual file.
    This would require database settings and reprogramming into the OS X Mavericks system. I should definitely think about saving files under the tag section,if it is possible, and how one will achieve it as a programmer and developer. It would be an excellent way to file things without any necessity, for knowing where they are. So long as one saves every file with the right tags. Of course one could then save under a main tag and add more tags in the text dialogue interface which pops up when you are saving a file.
    Or one could remove it from the save dialogue interface completely, to avoid crashes and confusion.attack is not a particular location but then again neither is a folder really. Both folders and tags are just virtual binary code translated into pixels on the screen. I therefore do not really see any difference between an album, a folder, a photo stream, or attack or I could take very. To the binary system they are just different waysof presenting virtual data in a visual way so that humans can interface with it.but tags can be added to a file as more than one tag. And this allows for multiple terminologies and search filters to be used when searching for a file. It allows for cross reference searching.
    Tagging files in OSX is an art and a science, which one must learn and have a very strict regimen with oneself, in order to achieve a truly organized filing system. but, if you truly must of this ought and I strict enough with yourself to organize your tags properly, you can have an extremely powerful way of accessing your data without having to have too many folders and visual interfaces to find them with. This requires that you manually name and tag all of your files of costs which if you work with hundreds of files a day is rather tiresome.
    but that is like planting a field of flowers, you must plod along every day until you have thousands of them and it becomes enough to be called a field. Once you have planted plenty, and that means you have created lots of tags, and have the discipline to name every saved file under is relevant tags, then finally, once you have thousands of files, this will become an indispensable way of arranging and searching for your work files

    Thanks for input. The price changes occur infrequently - Norton/ Symantec software. Not a lot of sku's to make a database plus page is flowery and does not need to be searched on by the user. Links connect directly to Norton. Now I make the changes on one page and "Save as" to the others but my button links fail. It is curious CS4 would make the change from images of the link in the actual link box in html. In view it works fine but on site buttons are not visible?

  • How do you delete all occurrences of a recurring event in iCal without deleting them one by one?

    These events have no stopping point, and go on into eternity. How do I get them out of iCal without having to delete each one separately? I want to sync with my new iPhone, but don't want these events in my iPhone calendar. They are in my old iPhone when I synced it a couple of years ago. In the iPhone, you have no way to delete or edit these events.
    Thanks for any suggestions.

    pedfogog,
    ... or whoever may find this post in need of assistance as I was.
    I just had this same problem and successfully deleted ALL event (past and future)instances by :
    1. Click on any instance of the event in the calendar
    2. Select "Delete" from the iCal toolbar "Edit" menu.
    3. The iCal propmt asked me to choose to delete all or just the one instance.
    4. Naturally, select to "Delete all occurrences"
    I am running OS 10.6.8   iCal 4.0.4

  • SbRIO save file on flash via host

    Hi,
    I have the follwing problem:
    I am using a SB-RIO9632XT.
    If the host programm, which operates in realtime shall save some information in a file. Can I use the internal memory on board for this?
    My major problem is to save information during operation in a file (on flash, whatever) which allows me to read this information later. Typically after all operations were performed, the sbrio will be switched off. At the next operation I want to keep on writing this file or read it out.
    Someone an idea IF this is possible and HOW to realise these steps?
    (I am using LabVIEW 8.6)
    Thanks for reply
    Martin

    Hello koschi,
    this should also be interesting for you
    How Can I Programmatically Determine the Amount of Free Storage Space Available On My Real-Time Seri...
    best regards
    Alexander Glasner
    AE NIE

  • Can I delete one the 2 exact same files in Finder, without deleting the other one Automatically too?

    I have backed up and have removed a User account. since then, I have 1 user account, but all files are duplicate. Instead of having 199GB on my disk, i now have about the double. Ifound some stuff to delete, but there are also apple apps that are double. Can i delete half of them, so that only one copie stays and not both delete?
    Thanks for helping out.

    no obviously not. it's not in the trash if you are worried copy the second copy and change the name to something else. then delete both and after deleting both rename the copy the same as the original.

  • Deleting files from comp without deleting them for ipod

    I have an 80 GB Ipod and a 30 GB PC HDD. I only have about 2-4 GB to work with at any given time on my PC. I want to know if there's a way to clean out files on my PC making room for others without losing them on the Ipod. I tried to just synch the new ones but it erased my other files. I'm glad I tested it first, but I don't know what else to do. I want to use my Ipod to its fullest extent, but I can't delete the programs and files used for school from my PC, so its really limited atm.

    Best thing to do is either upgrade your PC's hard drive to a larger one or buy an external drive and keep your library on that.
    But to do what you want, you have to switch your iPod from auto sync mode to Manually Manage mode.
    In manual mode you can add stuff to the iPod manually (drag and drop from iTunes library onto the iPod icon on the left) without effecting anything already on it. Downside is that you have to manually add or delete content from the iPod and things like play counts, rating you might assign on the iPod, etc. do not get synced back to your library.
    Good luck,
    Patrick

  • Copy/Save file to flash drive

    I am trying to create a script where the user can initiate a
    download/Save/copy of a stored file from my HDD to a flash drive.
    It would seem that baCopyProgressFile would be ideal for this
    situation, but I am authoring on a Intel MBP and it does not appear
    that Buddy API is compatible with Intel Macs at this time. I only
    need this projector to display on this MBP (this is really just a
    quick proof of concept project that will be run locally), so any
    suggestions or alternatives would be very helpful. Thanks.

    > By main directory, I mean the directory where the
    director project resides. I
    > would like to copy a movie from this directory to the
    root of the flash drive
    > directory.
    I'm still not understanding you. You want to copy a file from
    the
    directory where the projector is, or a sub-directory?
    If you want to copy from a sub-directory, try something like:
    on mouseUp me
    tSource = "@/movies/480p.mov"
    tDest = "/Volumes/bb/480p.mov"
    OK = baCopyFileProgress(tSource, tDest, "IfNewer", "Copying
    Movie to
    disk...", "Cancel", 0)
    if OK <> 0 then alert string(OK)
    end
    > I updated the code with yours, and now when I run the
    movie, it gives me an
    > error stating:
    > Script error: String expected
    > Alert OK
    > 5
    My mistake. I assumed that when you use 'alert' whatever you
    are
    alerting is auto-cast to a string. Try the above instead.
    > If I adjust the code so that it copies the file from the
    projects directory
    > and pastes it into the same, then the file will copy
    with the progress bar and
    > after the copy is complete it gives me the same error
    message as above, only
    > with a '0' instead of a 5.
    If you look in the docs for Buddy API, 0 means the operation
    succeeded
    and 5 means "Couldn't create directory for Dest file"
    (suggesting your
    destination path is incorrect)
    Since you already use Buddy API I suggest you use a
    combination of
    baDiskList() and baDiskInfo(disk, "type") to determine which
    is your
    Flash drive and then use that disk as your root for copying.
    For example:
    on mouseUp me
    lDisks = baDiskList()
    lTargets = []
    repeat with aDisk in lDisks
    if baDiskInfo(aDisk, "type") = "Removable" then
    -- found (potential) target
    lTargets.append(aDisk)
    end if
    end repeat
    case count(lTargets) of
    0: -- no removable drives available to copy to
    alert "Drive not found"
    1:
    tSource = "@/movies/480p.mov"
    tDest = lTargets[1] & "480p.mov"
    me.mCopyFile(tSource, tDest)
    otherwise:
    -- more than one removable drive available
    -- you'll need to create a routine to determine
    -- which one you want to copy to, or present the user with
    -- a selection they can choose from
    end case
    end
    on mCopyFile me, aSource, aDestination
    OK = baCopyFileProgress(aSource, aDestination, "IfNewer",
    "Copying
    Movie to disk...", "Cancel", 0)
    if OK <> 0 then alert string(OK)
    end

Maybe you are looking for

  • 5th gen ipod shows up in my computer but not itunes

    my 30gb 5th gen ipod shows up in my computer but not in itunes. ive seen the stuff about this but im positive the problem is with the ipod and not my computer. i run several other ipod through my computer with no trouble and i had my freind try to ru

  • Dead Hard drive

    Ok So i guess i learned the hard way that it is not good to force shutdown your MBP when you cannot log in. It fried my HDD. Now I tried a bunch of stuff to recover but nothing will work (Disk warrior, Tech tool, and stellar) I also tried to do recov

  • Way to set default alarm setting?

    Is there a way to set a default/preference for the alarm warnings, as in entourage? I currently have to set each event with an alarm if I want one. thanks in advance

  • Re-installing actions in pse10 on windows 8.1

    PLEASE HELP! Just got a new computer running windows 8.1. Have installed actions many times before and they work great, but now when I install them it shows that its building content but the actions are not there. Please help!!

  • Lightroom randomly rotates previews on import

    Hi, I'm experiencing some weird Lightroom 5.4 behaviour on one iMac (OS 10.9.2). After Lightroom has initially imported the files (Nikon D800 NEF) it builds previews, but some of those previews are rotated by approx 5 degrees with a white background