Sort jpgs via file list?

Would is be possible to write a custom manual bridge sort file (hidden file)?
The  idea would be able take a list of jpegs in a specific order and get  Bridge to to sort them according to the order on the list via preserved filename metadata.  Say an ordered list of images for an animated sequence?
Any advice and or a script would be great!
Thanks!

Hope this will help you, this code expects you to have a TEXT file with a list of filenaames that willl be used to sort the selected folder.
N.B. The text file MUST have the names of the files in SAME case as on disk.
Example: mypicture.jpg (in the text file ) is not the same as MyPicture.jpg on the disc. They must be the same!
#target bridge
if( BridgeTalk.appName == "bridge" ) { 
var sortWithTextFile = new MenuElement( "command","Sort on TXT file", "at the end of Tools" , "txtsort" );
sortWithTextFile.onSelect = function () {
var txtFile = File.openDialog("Please select TEXT file.","TXT File:*.txt");
if(txtFile == null) return;
var fileNames = new Array();
txtFile.open('r');
while(!txtFile.eof){
var line = txtFile.readln();
if(line.length <4) continue;
fileNames.push(line.toString().replace(/^[\s]+|[\s]+$/g, ''));
txtFile.close();
var fileSort = new File(app.document.presentationPath +"/.BridgeSort");
var fileNames2 = new Array();
if(fileSort.exists) fileSort.remove();
var fileList=[];
for(var f in fileNames){
var tmpFile = File(app.document.presentationPath + "/" + fileNames[f].toString());  
if(!tmpFile.exists) continue; //Ignore files that do not exist, better to create an error file.
fD = File(tmpFile).created;
var FileDate = fD.getFullYear() + (zeroPad(fD.getMonth() +1,2).toString());
FileDate += (zeroPad(fD.getDate(),2).toString()) +  (zeroPad(fD.getHours(),2).toString());
FileDate += (zeroPad(fD.getMinutes(),2).toString()) + (zeroPad(fD.getSeconds(),2).toString());
fileList.push([[decodeURI(tmpFile.name)],[FileDate]]);
app.document.sorts = [{ type:"string",name:"name", reverse:false }];
fileSort.open("w", "TEXT", "????");
fileSort.lineFeed="Unix";
fileSort.encoding = "UTF-8";
fileSort.writeln("<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>");
fileSort.writeln("<dirinfo>");
fileSort.writeln("<files>");
for(var t in fileList){
    fileSort.writeln("<item key='" +fileList[t][0].toString().replace(/&/,"&amp;") +fileList[t][1].toString() +"' />");
fileSort.writeln("</files>");
fileSort.writeln("</dirinfo>");
fileSort.close();
fileSort.hidden=true;
app.document.chooseMenuItem("mondo/command/new");
app.documents[0].close();
app.document.sorts = [{ name:"user",type:"date", reverse:false }];
function zeroPad(n, s) {
   n = n.toString();
   while (n.length < s)  n = '0' + n;
   return n;

Similar Messages

  • I only must have back the sort feature via file names, lost in PhSE11 (my current version). !! Sham

    I only must have back the sort feature via file names, lost in PhSE 11 (my current version). !! Shame o the one who have had this  stupid idea, far away from any situation in practice! Why I have now to  pay so much money for an upgrade to PE12??

    Judy444 wrote:
    .. Is there a How To beginners tutorial for this program?
    here: http://www.apple.com/findouthow/movies/
    and the built-in Help of iMovie (as any other Apple app) explains a lot..

  • Question about Finder file listing order when sorting by "Name"

    I quite often add a suffix to some of my file names when I save them so that I can keep a complete history of changes. For example, I usually add "_000" at the end, and progress to "_001" through "_009". However after "_009" I don't increase the next digit to "_010" but instead, after "_009" comes "_00A" then "_00B" on to "_00Z" and then to "_010". I have been doing this for a while now (several years) and it has worked well for me.
    I have noticed in the finder window, when in "List" view a file ending in "_00A" is listed lexicographically before a file ending in "009" instead of the other way around.
    I think that this is due to my UNIX Locale being set to LANG="en_US.UTF-8"
    1. Is this a correct assumption?
    I would like it to be listed in POSIX order.
    2. Is there a way I can make just specific folders list file names in POSIX order?
    I was thinking of changing my Language to POSIX using the terminal command:
    $ export LANG=POSIX
    but this may have undesirable effects with the rest of Mac OS X.
    3. Is there a finder preference (plist item) I can change so this just changes the listing order to POSIX? (I have no problem if all Finder windows use this sort order for file names.)
    Thank you in advance.
    Jeff Cameron

    I don't know of a GUI way to change it or if you unix trick will work/do anything, but the Mac OS has always sorted that way, if I'm understanding you correctly. It looks at the entirety of the naming and puts 2 immediately after 1 instead of putting 10 there like Windows does (and Alpha comes before numeric).
    I don't think the unix underpinnings changed sort order, but I may be remembering wrong. It's been a long time since OS 9. That's why I don't think the LANG switch will work.

  • How to Sort music on play list by FILE NAME?

    How to Sort music on play list by FILE NAME?

    iTunes doesn't display the filename or filepath as a column so you can't sort on it. I could write a script to copy the filepath into the Sort Name field so that sorting by name would sort by filepath. Would that help? In normal circumstances however filepath order would be the same as Album by Artist, so I'm not sure what you would gain. Perhaps there is another way to approach whatever problem you think sorting by filename would solve.
    tt2

  • Sort order of file names in list windows

    Why is the sort order of file names in the File > Open File...
    list window other than in a normal Finder list window?
    Example:
    File > Open...:
    @@@2Know.pages
    @@@2KnowQ.pages
    @@@@@2Do.pages
    @@@@eBayAmaz.pages
    @@@@pws.pages
    @@@@Sold-DE.pages
    @@@@Sold-UK.pages
    Finder Window:
    @@@@@2Do.pages
    @@@@eBayAmaz.pages
    @@@@pws.pages
    @@@@Sold-DE.pages
    @@@@Sold-UK.pages
    @@@2Know.pages
    @@@2KnowQ.pages
    How could both lists be displayed equal?
    Thanks!

    Run this short script
    set theFolder to choose folder
    set theNames to list folder theFolder
    set texte to ""
    repeat with n in theNames
    --set n to n as text
    set texte to texte & n & return
    repeat with i from 1 to count of n
    set texte to texte & (ASCII number of character i of n) & " , "
    end repeat
    set texte to texte & return
    end repeat
    set p2d to path to desktop
    set rapport to "the characters.txt"
    tell application "Finder"
    if exists file rapport of p2d then delete file rapport of p2d
    set theRapport to (make new file at p2d with properties {name:rapport})
    end tell
    write texte to (theRapport as alias) starting at 1
    navigate to the folder whose list seems curious.
    You will get a file named "the characters.txt" on the desktop.
    It will show the code of every character embedded in fileNames.
    My guess is that there are some control characters which aren't treated the same by the open dialog and by the Finder.
    Here is an example:
    .DS_Store
    46 , 68 , 83 , 95 , 83 , 116 , 111 , 114 , 101 ,
    base Kbase - copie 1.cwk
    98 , 97 , 115 , 101 , 32 , 75 , 98 , 97 , 115 , 101 , 32 , 45 , 32 , 99 , 111 , 112 , 105 , 101 , 32 , 49 , 46 , 99 , 119 , 107 ,
    base Kbase - copie.cwk
    98 , 97 , 115 , 101 , 32 , 75 , 98 , 97 , 115 , 101 , 32 , 45 , 32 , 99 , 111 , 112 , 105 , 101 , 46 , 99 , 119 , 107 ,
    base Kbase.cwk
    98 , 97 , 115 , 101 , 32 , 75 , 98 , 97 , 115 , 101 , 46 , 99 , 119 , 107 ,
    exemple wKbase
    101 , 120 , 101 , 109 , 112 , 108 , 101 , 32 , 119 , 75 , 98 , 97 , 115 , 101 ,
    Icon
    73 , 99 , 111 , 110 , 13 ,
    safe
    115 , 97 , 102 , 101 ,
    scripts pour Kbase
    115 , 99 , 114 , 105 , 112 , 116 , 115 , 32 , 112 , 111 , 117 , 114 , 32 , 75 , 98 , 97 , 115 , 101 ,
     w_Kbase vers AW.scpt
    240 , 32 , 119 , 95 , 75 , 98 , 97 , 115 , 101 , 32 , 118 , 101 , 114 , 115 , 32 , 65 , 87 , 46 , 115 , 99 , 112 , 116 ,
    Yvan KOENIG (from FRANCE samedi 7 mars 2009 23:14:15)

  • Sort Order of Files In Files List

    Yes, yes... it sounds like another case of FTFF (fix the
    f*****g finder).
    I switched from Windows, and DW used to display files in a
    sensible order. i.e. directories alpha, and then files alpha. This
    made it easy to select file in a directory within DW.
    Now, on Mac OS X everything is alphabetised and jumbled up. I
    suspect this is unfixable, and is a reflection of the much hated
    finder column view issue.
    Is there a way to change the way DW sorts the dirs and files
    in the file list window (other than reversing it)?
    Steve

    > Is there a way to change the way DW sorts the dirs and
    files in the file list
    > window (other than reversing it)?
    have you expanded the Files Panel, made the sort by clicking
    on the
    headings, then collapsed it?
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • How to sort file list by time

    I have saved many PDF files from my mails - when I want to open (Adobe Reader on Samsung tablet) the file last saved I have no possibility find it simply by sorting file list by time - (list is fixed by name only) - how to change list order?.

    Sorting by time could be based on documents'
    (a) Date/Time created
    (b) Date/Time modified
    (c) Date/Time last opened / accessed
    Adobe Reader for Android shows (c) in Recents.
    (Click the image above to enlarge)
    The last opened PDF document appears at the top.  Please note that it is not customizable - meaning that you (as a user) cannot change the sorting criteria.

  • Applescript to automate the laboreous matching and moving jpg/CR2 files

    Hi
    I used to use MS Basic (at school) and was (really) good at Hypertalk but have done no scripting for years (since they killed Hypercard)
    I am a photographer (as a hobby) and will take 1000-2000 photos on a weekend. I shoot JPG & CR2. The JPG are much quicker to evaluate and that's why I use them. I will normally keep about 5%. At present I end up manually picking out the CR2 files which match the JPGs I've sorted. This takes up to an hour of horrible, tedious, eye-straining work. I've searched for scripts which would automate this but haven't found one that works ...
    I would like a script which would, for instance, get the names of all the JPG files in one folder and find the  (CR2) matches in a second folder and move those (CR2) files to ether a third folder or the folder with the original JPG files are ...
    I'm not totally useless at following scripts but also don't know enough Applescript to find out how to make the scripts I've seen which purport to do the job described work ...

    This is actually pretty straightforward to do. The following script and its comments should give you an idea.
    -- first prompt the user for two folders:
    -- 1: the folder of JPEGs to keep
    -- 2: the folder of matching CR2 files
    set JPEGFolder to (choose folder with prompt "Select the folder of JPEGs to keep:")
    set CR2Folder to (choose folder with prompt "Select the folder containing the .CR2 files:")
    -- now work your magic
    tell application "Finder"
      -- iterate through the JPEGs
      -- the 'whose name extension...' is optional, but will help filter out erroneous files
      repeat with eachFile in (every file of JPEGFolder whose name extension is "jpg") as alias list
      -- work out the base name of the file (i.e. without the '.jpg'
      set basename to (characters 1 through -5 of (get name of file eachFile)) as text
      -- now append ".CR2" to the base name, which gives us the corresponding .CR2 file
      set CR2Filename to basename & ".CR2" as text
      -- now we know the file we're looking for, so copy it
      -- we use a 'try' block to catch any errors (e.g. missing .CR2 files)
      try
      -- this is the line that does the copy
      -- note that it copies the .cr2 to the JPEG folder
      -- change the 'to' parameter to some other folder if you want
      --  the copies to go elsewhere
      duplicate file CR2Filename of CR2Folder to JPEGFolder
      end try
      end repeat
    end tell

  • How do I sort my individual files?

    I will try to be as descriptive as I can. I have a MacBook Pro running OSX 10.9.1. I have searched the community and will continue to do so.  I am having no success in sorting my photo files. First, I go into Finder. I then select my drive. From the next column I then select the folder where the files I want are located. I have these folders named by date. I select the date I want and there is my list of, let's say, 100 files. They are half jpeg and half CR2 (raw) and are listed as follows:
    File 1 jpeg
    File 1 CR2
    File 2 jpeg
    File 2 CR2
    File 3 jpeg
    File 3 CR2, etc., etc. through 100.
    I want to organize them by size so that all jpegs are first (1-50) and then the raw files second (51-100). However, even highlighting them and telling the computer to sort by size, it does nothing but sort the folders in the previous column. I have thousands of CR2 files I potentially want to delete so I need to be able to sort in this manner. Any guidance that can be provided would be greatly appreciated.  I swear I was able to do this previously irrespective of list view, icon view, etc. simply by selecting the entire list and choosing my sort/arrange either by kind or by size (as all CR2 files are significantly larger than even the largest jpeg.  Thanks in advance.

    Based on some earlier suggestions by others, I finally figured this one out, and it works perfectly every time.  I just deleted thousands of RAW files easily from iPhoto since I edit those with Lightroom on my desktop and now I have only the JPEGs on my Mac Air, saving tons of hard drive space.
    Do this: In Finder / View / Show View Options / Arrange by:  Name and Sort by:  Size.  Check all fields you wish to see displayed, e.g., name, date created, etc..  Now open iPhoto and select Events.  You will need to perform the next series of steps individually for each desired Event, one at a time.  My procedure didn't work when I tried it for All Photos, for example.  Now click on an Event album that you wish to delete a file type, e.g., RAW, JPG, MOV, etc.  Click File / Reveal in Finder / Original File.  Finder will display all file names in the selected Event in a pop-up window.  Now simply highlight the files you wish to delete and then Move to Trash.  Empty Trash.  They are now gone!  Repeat for other desired photo Event albums.
    Hope that helps.

  • After successful install, I am unable to use RoboHelp 7 because of constant refresh of file lists

    RoboHELP 7 installed on Windows XP
    Our enterprise support team installed RH7 on my new laptop via our corporate intranet.  I received an e-mail message reporting that the install failed so I contacted the support team, someone logged on to my machine by remote and did an uninstall of RH7.  Then, the install was done again and the same failure message was received.  Then, RH was uninstalled and the install was attempted for the third time.  Again, I received the failure message.  I had noticed that after each install the icons appeared on my desktop.  So, after this third install, I went ahead and clicked the RH7 HTML icon and the program seemed to start properly.  I have a key number from our enterprise team and I entered the key number to complete the registration.  The UI appeared and I selected my recent project.  RH built the file lists that I expected to see in the left panes of the interface but the file lists kept "twitching" and the cursor kept changing to the hourglass and back.  This happened about once every two or three seconds and I could not move my cursor fast enough to select a file.
    One of my co-workers suggested that I uninstall RH7 myself, check the registry and erase any robohelp entries.  I know this is risky but I am confident I can do it.  However, I would like to hear from any RH experts about how to solve this "twitching" problem, if there are other possible solutions.  Thanks.

    My gut feel is that if your organisation is large enough to have an Enterprise license, IT would not take too kindly to you uninstalling the product yourself and editing the registry. That's your issue though.
    If they are happy, then you could try www.revouninstaller.com with which a number of people have reported good results if you use the stronger options to clear the registry. Again at your risk and responsibility.
    You might also like to look at http://www.adobe.com/devnet/robohelp/articles/before_install.html. It includes the script IT should be using. Maybe that should be checked as well.
    The other approach is to get them to do a direct install. Worth trying given the issues you are having.
    See www.grainge.org for RoboHelp and Authoring tips

  • The only way I can open a new tab is by right-clicking a bookmarked site and selecting "Open in a New Tab." I can't click on the New Tab + or CTR+T or open via File. WHY?!?

    The only way I can open a new tab in Firefox is by right-clicking a bookmarked site and selecting "Open in a New Tab." I can't click on the New Tab + or CTR+T or open via File. WHY don't the other means work?

    The Ask Toolbar is causing that in the Firefox 3.6.13+ versions. Uninstall that extension.
    There are a couple of places to check for the Ask toolbar:
    * Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    * Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons

  • HT3275 Time machine at home and it will not allow me to remove the listing of my external hard drive from the excluded files list.

    Please help guys, I have a Time machine at home and it will not allow me to remove the listing of my external hard drive from the excluded files list.
    I am trying to use time machine to back up the hard drive. For backing up from Macbooik pro and Imac, there is no problem. It seems to not want to allow the external drive to be removed from the Excluded list and as such will not back up from it.
    Is there a way to be able to transfer files (music, movies etc) to time machine, format the external drive then put the files back to hard drive?
    Sorry it is a long winded question but it is driving me nuts that I cant sort this out.
    The <Macbook and Imac are both running mountain lion.
    Thanks Guys

    As for the hard drive to which you have never been able to write, is it by any chance in NTFS format? OS X can read NTFS for importing files, but it does not contain code for writing on an NTFS volume. That's a choice, not a bug.
    There is third-party software available to install NTFS-writing capability into OS X. An example is Paragon NTFS for Mac OS X. Another alternative would be to use a disk format that both Macs and Windows systems can use for both reading and writing; this would require either a new drive or erase the existing data.
    If by "the new system software" you mean OS X 10.9 Mavericks, you may want to repost that portion of your query in the Mavericks forum at https://discussions.apple.com/community/mac_os/os_x_mavericks . I haven't made the leap yet.
    I don't know what other problems you have been having, so I cannot comment on them. You don't seem to have any other recent postings on these forums.

  • Web Matrix FTP Remote Connection Error - "Connection Error - Failure to get file list from server. An entry with the same key already exists."

    Does anyone have experience with this issue when connecting to a Linux FTP Web Server running a FTP Site?
    "Connection Error - Failure to get file list from server. An entry with the same key already exists."
    I cannot access the root directory of the ftp file server using Web Matrix 3. The site is .php based, and
    is accessible when connecting with FileZilla or Remote Connecting via FTP with Visual Studio.
    All sites have been deleted from Web Matrix, the user Application Data has been cleared and Web Matrix has been reinstalled.
    Issue Persists....
    Thanks in advance,
    Justin

    Turns out that the program leaves metadata in your app data folder that is not removed upon uninstallation of the software.
    This is incorporated to communicate with a file that uploaded into the ftp directory when publishing pages.

  • PREPARE UPLOAD_REQUEST CANNOT GET FILE LIST

    Hello all,
    In the PREPARE, phase UPLOAD_REQUEST, received error 'CANNOT GET FILE LIST OF '..EPS\in.. folder.
    Log UPLOADREQ.LOG has the followin. Search in SDN and SAP did not get any result.
    1 ETQ201XEntering upgrade-phase "UPLOAD_REQUEST" ("20081126150332")
    2 ETQ367 Connect variables are set for standard instance access
    4 ETQ399 System-nr = '60', GwService = 'sapgw60'
    4 ETQ399 Environment variables:
    4 ETQ399   dbs_db2_schema=SAPR3
    4 ETQ399   auth_shadow_upgrade=0
    4 ETQ399 Directory 'd:\usr\BZ3put\eps' not found.
    4 ETQ399 Skipping copy of OCS packages.
    2 ETQ730 Starting upload of all package files in "
    ustcf001\patches\EPS\in"
    4 ETQ010 Date & Time: 20081126150339 
    4 ETQ230 Starting RFC Login to: System = "BZ3", GwHost = "ustwa356", GwService = "sapgw60"
    4 ETQ359 RFC Login to: System="BZ3", Nr="60", GwHost="ustwa356", GwService="sapgw60"
    4 ETQ232 RFC Login succeeded
    4 ETQ233 Calling function module "SPDA_PREPARE_PATCH" by RFC
    4 ETQ234 Call of function module "SPDA_PREPARE_PATCH" by RFC succeeded
    4 ETQ239 Logging off from SAP system
    4 ETQ010 Date & Time: 20081126150339 
    2 ETQ731 Upload failed, rc = "1", reason = "CANNOT GET FILE LIST OF
    ustcf001\patches\EPS\in"
    2 ETQ730 Starting upload of all package files in "
    ustcf001\patches\EPS\in"
    4 ETQ010 Date & Time: 20081126151823 
    4 ETQ230 Starting RFC Login to: System = "BZ3", GwHost = "ustwa356", GwService = "sapgw60"
    4 ETQ359 RFC Login to: System="BZ3", Nr="60", GwHost="ustwa356", GwService="sapgw60"
    4 ETQ232 RFC Login succeeded
    4 ETQ233 Calling function module "SPDA_PREPARE_PATCH" by RFC
    4 ETQ234 Call of function module "SPDA_PREPARE_PATCH" by RFC succeeded
    4 ETQ239 Logging off from SAP system
    4 ETQ010 Date & Time: 20081126151823 
    Hope anyone can help, thanks in advance.
    Thanks and regards
    Terry

    I tried to load the packages via SPAM, and got the following - does it mean I have corrupted EPS/in?
    Could not create file list
    Message no. PS 012
    Diagnosis
    A list of the required files could not be created as an error occurred.
    Directory:
    ustcf001\patches\EPS\in
    File mask:
    Error code: 17
    Definition of error codes:
    03 RFC system failure
    04 RFC communication failure
    11 invalid EPS subdirectory
    12 sapgparam failed
    13 build directory failed
    14 no authorization
    17 read directory failed
    18 read attributes failed
    22 too many read errors
    23 empty directory list
    System Response
    The operation was terminated.
    Procedure
    Eliminate the cause of the error and repeat the operation.

  • Why I just get file list?

    hi,I compiled j2ee tutorial example hello3,I deploy it by asant and config it by deploytool,when connect from IE(http://localhost:8080/hello3),I just get a file list,when I click the greeting.jsp,I get the web content displayed,everything likes fine.I just want know why I got file list(I got same situation with other example).
    thanks advance!
    david

    You can make a screenshot picture of each page of the list right from Preview, via
    File menu>Grab>Selection
    drag over the list and let go.
    The resulting tiff file snapshot on the desktop (and itself now open in Preview) is readable and printable, but since it is an image, it is not editable or copyable as text.
    If you really need editable text , and if you also have an OCR program that might have come free with a scanner, then.. (ugh..)
    (Yes, it's not only a kludge, but a really BAD one! There's got to be a better way.. )

Maybe you are looking for

  • Photoshop: Text box bug

    Today our designers have run into an interesting bug I've never seen before, and perhaps one of you has and can offer a solution. We are working on a file that has been opened and edited on both PS CS4 and CS6, contains images and text and some shape

  • How can I install WebOfTrust for a local account and save the profile so that it transfers to domain accounts that log on to that specific computer?

    We are creating images through ghost server to clone onto several laptops and one of the features we need to have configured is the Web of Trust extension in Firefox. I have configured a local account on the machine and set up Web of Trust and then c

  • How to Restore Safari Bookmarks with Time Machine in Lion

    Hi - I want to restore my Safari bookmarks. I am running Lion and have a Time Machine backup with the correct bookmarks.plist file. The problem - as I see it - is that the "Library" folder - where the Safari bookmarks.plist file is located - no longe

  • JEXC and JEXS condition types are missing in client.

    Hi All, Condition types JEXC and JEXS are missing in 000 client in our present project( Indian Rollout). These condition types are required for domestic calculation of conditions. Please throw some light on this issue. Note: One more thing, all J****

  • I recently had a repair...

    Hello everyone, Today I got my iBook G4 back from an AppleCare repair and I had a problem. The system ran perfectly until I came across a problem. When I had my laptop repaired, the problems were: * No power * Disc stuck in drive And I put a DVD in m