Search for specific filename

after AtomicParsley has tagged an MP4 file (which i have done from an applescript), it appends a random string to the end of the file, like "-temp-12345"
how can i search for this file, so i can select it? (and import it into my itunes library)
regards
jingo_man

One solution:
-- Code starts here --
set sFolder to ((path to desktop folder from user domain) as string) & "AtomicParsley"
tell application "Finder" to set tFiles to every file of folder sFolder whose name contains "-temp-"
tell application "iTunes"
activate
repeat with i in tFiles
add ((i as string) as alias) to playlist "Library"
end repeat
end tell
-- Code ends here --

Similar Messages

  • TS3595 I am unable to "search for specific songs or artists in iTunes on my new I pad

    I am unable to "search for specific artists or songs in iTunes using my new iPad 3rd gen.  I am not  really great with all things computer but can follow step by step instructions pretty well. Any suggestions?

    Click the + sign above My Stations to create a new station then type a Genre, Artist or Song in the search box.

  • How can one search for a filename anywhere on the Mac?

    How can one search for a filename anywhere or everywhere on the Mac?

    You can configure Spotlight so it will also search in system files or you can download and use EasyFind 4.9.3 that doesn't require special configuration.
    Get Spotlight to search system files (and more)
    Enter the search term in the Finder window's search field.
    Click the [+] button in the search bar to add a search option.
    In the first drop down menu choose Other.
    Choose “System Files” from the list that pops up (and check the box to place in drop down menu to avoid this step later,) click on the OK button.
    Now back in the Finder choose Include from the second drop down menu.

  • Search For Specific File Type (eg .txt)

    I know how how to find files in a folder using Java but how do you search for specific file types. I am looking only include files with the extension .txt in my search.

    Cheers. I already looked at that. Got a program that parses a XML and had a play about with it. Can print the contents of tags in my XML. Its just that im trying to parse my XML and have the contents of the starts_with tag to appear in startsWith(or a variable to which this has been assigned) and the contents of the extension tag to appear in endsWith. Totally clueless on how to go about it.
    Below is my class. Would be greatful if you have any ideas.
    import java.io.File;
    public class FindLatestFile {
                 public static File getLatest(File thisDir){
                         long latestModDate = -1;
                         File latestFile = null;
                         File[] fileList = thisDir.listFiles();
                         for(int i=0; i < fileList.length; i++){
                             File file = fileList;
         if (file.lastModified() > latestModDate & (file.getName().startsWith("A") & file.getName().endsWith(".txt"))) {
         latestModDate = file.lastModified();
         latestFile = file;
                             return latestFile;

  • Search for specific values (no *) in RSUSR070

    I want to find all activity groups that contain a specific entry for authorization object P_ORGIN, Personnel Area field.  I want to search for FL02 for example, but if I type FL02 in the selection field, I will also get any activity group that contains * as the value for Personnel Area.  I tried putting FL02 in single quotes but that did not work either.
    Any ideas?
    Thanks,
    Cindy

    Alex69 wrote:
    Thanks for the answer…
    I thought maybe I'm doing something wrong or this is because i excluded the Time Machine volume from spotlight, but ok, not my fault, but an apple "feature"
    I could search for specific E-mails using a finder search and then switch into Time Machine, but since Mail is called a Time-Machine-Aware Application I felt there should be a direct way to do this in Mail…
    Yes, there "should be a direct way to do this."
    The approach you describe above will work for email that still currently resides on your Mac, for example an email that has been "Replied" back and forth and you wish to retrieve an earlier version of the conversation. Or perhaps a "Draft" email that has undergone changes over time, of which you need to retrieve an earlier version. In these cases using Time Machine is relatively straight forward.
    My problem with Mail/Time Machine is with a specific email that has since been deleted. Unless you know exactly what mailbox that email had been in, and at what time the email had existed, then it can be like searching for a needle in a haystack. In this case the Time Machine interface needs to have a search box added to the "time travel" windows for faster retrieval of specific items, the location of which the user doesn't remember.
    I'm convinced, though, that the usability of Time Machine in such instances will improve over time. Particularly as more app become integrated with it.
    Glenn

  • Search for specific E-mail in Time Machine?

    Hi,
    I have a problem with searching for E-mails in Time Machine.
    When I search for E-mails of a specific address or subject in Mail and can't find it, I enter Time Machine and in Time Machine the "search field" of the mail window is empty and all E-mails are shown.
    I found no way to filter the E-mails and it's difficult to find an E-mail when all E-mails are listed.
    I also can't use a intelligent folder with my search criteria, cause they are greyed out in Time Machine.
    Is this a "normal" behaviour or am I doing something wrong?

    Alex69 wrote:
    Thanks for the answer…
    I thought maybe I'm doing something wrong or this is because i excluded the Time Machine volume from spotlight, but ok, not my fault, but an apple "feature"
    I could search for specific E-mails using a finder search and then switch into Time Machine, but since Mail is called a Time-Machine-Aware Application I felt there should be a direct way to do this in Mail…
    Yes, there "should be a direct way to do this."
    The approach you describe above will work for email that still currently resides on your Mac, for example an email that has been "Replied" back and forth and you wish to retrieve an earlier version of the conversation. Or perhaps a "Draft" email that has undergone changes over time, of which you need to retrieve an earlier version. In these cases using Time Machine is relatively straight forward.
    My problem with Mail/Time Machine is with a specific email that has since been deleted. Unless you know exactly what mailbox that email had been in, and at what time the email had existed, then it can be like searching for a needle in a haystack. In this case the Time Machine interface needs to have a search box added to the "time travel" windows for faster retrieval of specific items, the location of which the user doesn't remember.
    I'm convinced, though, that the usability of Time Machine in such instances will improve over time. Particularly as more app become integrated with it.
    Glenn

  • How to query for specific filename

    I'm using a modified folder_action script to ftp files up to a server once they're finished being created.
    Is there a way to query for a specific filename to be present in the folder prior to passing it to the actual ftp function? The catch is that the filename will always be in the format of <mmddyy>.mp4. During the process that is creating the actual file to be ftp'd, various temp files are created prior. I'd like to ensure that only the final version of the mp4 is acted upon, which is the one with the mmddyy as the filename.

    The folder action already has the folder and the item paths passed to it, so you can get the individual file name by using something like:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on adding folder items to this_folder after receiving added_items
    repeat with AnItem in added_items
    if text (count (this_folder as text)) thru -1 of (AnItem as text) is "<mmddyy>.mp4" then
    -- whatever
    end if
    end repeat
    end adding folder items to
    </pre>
    There are also temporary folders that the system provides, so you shouldn't have to use the folder with the attached action at all:
    get path to temporary items
    get path to temporary items from user domain

  • Find Label Missing in Advanced Search For Specific User

    for specifi users FIND label is showing but some of the users in advanced search this find label is missing . top of the applictaion it is there
    plz let me know why this is problem is coming
    find button should visible to all users......................
    give me repaly ASAP

    Hi
    CRM 5.0
    its not related to application,modification ..but my problem is the find label is working for some of the users.but some of the users find label is not there,
    plz let me know where i have to make corrections for this problem........

  • Searching for specific file extensions etc?

    Is there a way to search for just, say: .jpegs or even 'Folder'?
    An 'advanced' search if you will?
    I know I can search and get all 'kinds'; .jpegs, folders, mail messages, .doc and then click on Kind and get them grouped.
    BUT, can I just search for .jpegs etc on my computer??
    Thank you!!

    Create a Smart Folder.
    In the Finder, do +File > New Smart Folder+
    In the grey area at the top of the Smart Folder window, click +This Mac,+ and Filename (on the left) and then the "+" sign on the right
    In the new row that opens, click the dropdown box on the left and select +File Extension.+
    Enter .jpg in the box after the word "is"
    You will get a listing of all the .jpg files on your Mac
    If you want to save the Smart Folder for ongoing use, click the Save button in the upper right corner, give your folder a name & location, then click Save

  • Search for specific user in an Active Directory group

    Hello,
    I have an OU containing a number of Groups. Each group contains a number of members.
    I'm currently retrieving the entire list of members from each group by searching for the members attrib for each group. This is not an ideal approach as the query execute time is a bit too long.
    from what I can tell, the group class is group (opposed to a groupofuniquenames). Is there a way to query for the specific member?
    Thanks

    Thanks for the reply.
    I have read the first post you gave, but not the second. I'm off to read that now.
    My main concern is that I don't have access to the DN of the user in the member attrib. I have access to their CN and uid (which is indexed). From what I can recall from when I last updated this code, I couldn't create a wildcard search filter e.g.,:
    (&(cn=All Scientists)(objectClass=Group)(member=CN=Albert Einstein*))
    If that's correct and I require a DN, is there any way around this?
    I was interested in the posixGroup and groupOfUniqueNames classes. I wasn't aware that these were available through Active Directory, but I see them listed in the AD schema (http://msdn.microsoft.com/en-us/library/ms683908(VS.85).aspx).
    If I'm correct, posixGroup would allow for a filter of (&(cn=All Scientists)(objectClass=posixGroup)(memberUid=AEinstein))
    I'm not sure how typical it is to use the posixGroup class in AD and I'll have to check with my AD team before moving forward with this. But I wanted to get some more direction/ideas before asking them to create some posixGroup objects for me.
    I'm now going to go and read the second post you linked, but I wanted to put the rest of my details out there.
    Thanks again.

  • Search for specific text in numerous forms

    Hi,
    Looking for help to find forms that use hardcoded database links.
    Earlier in Forms 4.5 we used to convert all the 100 and odd forms to .fmt and then search in the fmt files for specific text. Forms 6i converts pl/sql code into something else hence we are not able to use the same technique as earlier. Does anyone have any suggestions for doing this in 6i.
    Thanks

    Forms 6i will also do a proper Forms Doc / Object List Report from the command line (eg f60gen script=no build=no forms_doc=yes batch=yes module=${MOD} userid=${CONNECT_STRING} module_type=${TYP} output_file=${OUT} module_access=file)
    The .txt output can be readily searched

  • Preview crashes when I search for specific words in (a) specific document(s).

    Here is a reply I wrote to someone else who had the same issue.  I don't believe their solution applies to my situation, because their problem was fixed when they upgraded to Mavericks.  I have been using Mavericks since it came out, but I have been having this problem ever since I got my MacBook Pro more than 2 years ago.
    ===========
    If I search for a particular word or combination, preview crashes.  It happens much more often when I am searching multiple PDF's at once.
    It really does seem incredibly random.  I could type the word "experiential" into the search box, and it will crash.  I can restart Preview and do the same search over and over and it will always crash after typing a specific letter in the word (i.e., it will crash EVERY time I get to the T in "experiential."
    To get around it, I have resulted to searching for the last half of words I want to find.  I will search for "iential" instead of experiential or "ingency" instead of contingency.
    It is truly insane.  On any given day, I never know what search word will crash with what document.  But in any given session of a few hours, I know the same words will cause the same document or group of documents to crash over and over.
    And it doesn't just happen sometimes.  I would say it happens with about 25% of the words I search for.  Again, I am search several documents at once, which may contribute to my problem being worse.  But, this shouldn't be happening at all.
    I have trashed the preferences files and repaired all permissions.  No help.   AAAAAGH!

    Do a backup.
    Quit Preview.
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder. Remove the following. You may not find them all. Restart and test.
    Containers/com.apple.Preview
    Containers/com.apple.quicklook.ui.helper
    Preferences/com.apple.Preview.LSSharedFileList.plist
    Preferences/com.apple.Preview.SandboxedPersistentURLs.LSSharedFileList.plist
    Saved Application State/com.apple.Preview.savedState
    Credit Linc Davis  for this solution.

  • Can't search for specific tag - Dreamweaver 8

    All of a sudden, I can no longer search for a specific tag in
    Dreamweaver 8 (Mac OS 10.4.6). It was working fine and I had just
    run a sitewide search, then boom! The attribute plus (+) and
    minus(-) signs appear over the text "Search:" right next to the
    dropdown box that says Specific Tag. It only happens in the tag
    search option.
    Clicking on the plus or minus does nothing, and when I try to
    run the search, I receive the error that one of my attribute fields
    is empty.
    I've tried a reinstall and restart, but that did nothing.
    Please help!! I NEED this function! Thanks.

    Shutdown DW and manually delete the Preferences file.
    I can't remember where to find the file on the Mac, so
    hopefully one of
    our Mac gurus can chime in here!
    Thanks,
    Randy
    > All of a sudden, I can no longer search for a specific
    tag in Dreamweaver 8
    > (Mac OS 10.4.6). It was working fine and I had just run
    a sitewide search, then
    > boom! The attribute plus (+) and minus(-) signs appear
    over the text "Search:"
    > right next to the dropdown box that says Specific Tag.
    It only happens in the
    > tag search option.
    >
    > Clicking on the plus or minus does nothing, and when I
    try to run the search,
    > I receive the error that one of my attribute fields is
    empty.
    >
    > I've tried a reinstall and restart, but that did
    nothing.

  • How to SEARCH for specific file TYPES, e.g. PDF?

    If I know the title has in it "resume" and I know it's a PDF, how do you search for all PDF files that have the word "resume" in the title?
    AND..
    How would you search all PDF files that had the word "supervisor" inside the document?
    Thanks

    Command F should do it. Once the search window appears, you should see a drop down box headed kind and next to it one headed any. Select PDF from the any one. Click the plus button, and another field will appear and you can see again more drop down boxes. You just want to set these up so you end up with name and contains, you can then add your text to the remaining field.
    Also see [this|http://apps.tempel.org/FindAnyFile/index.html]
    Message was edited by: gumsie

  • Searching For Specific Information in a ListBox

    I have a program that users enter data into a listbox. It has gotten to the point where it would be great to search for an entry using a phrase then the results be displayed into a label or different ListBox. The data is organized by date and information.
    It would be great if you were able to search for an entry using the date or meal (part of the info entered and saved). Any suggestions for a beginner?

    If each item in your ListBox contains several pieces of information, it might be better to use a control that provides multiple columns such as ListView or DataGridView. That way you could have a column for dates, a column for meals and columns for any other
    piece of information.
    You will still need to write code to do your search, but you can concentrate on searching for dates in the date column and meals in the meal column.

Maybe you are looking for

  • Object not showing up in session after I set it.

    I'm running some code that goes through an array of possible forms that could exist in the session. It attempts to pull each form out of session. If the form does not exist then it declares the form and puts it in session. The problem is that after I

  • HT201320 Setting up mail only works the first time and then fails...

    Hello, I own a new iPad 4. Setting up my own mail accounts works great for the first time (I see new mails and I can sent mails), but the second time I open the Mail-App it complains about my mail settings. Mails are provided from my own domain. Usin

  • Subcontracting - reg.,

    Hi guru's In subcontracting scenario while doing migo the quantity taken by the system for parent item is same as the child items as defined in the BOM. our client says that endusers are entering the child items in mismatching the quantity of parent

  • How to delete a customize table

    HI, I need to delete a customize table . But while trying to delete the table it's showing a message " Still used in dictionary. can't delete'. because this table is used by some programs and search helps. How to delete the table? Thanks & regards sa

  • Transact RFC error

    Hi Gurus, I am getting one issue while loading the data thru infopackage. While loading the data in 3.5 flow for some souce system it is taking long time and givig me transact RFC error. I have checked the source system connectivity and it is fine.Al