IOS 7 Pages file missing because name begins with '.'

I updated my iPad mini to iOS 7 and then updated Pages to the latest version.  The prior version of Pages allowed me to name a file beginning with a period ('.'), but in the new version this isn't allowed and I cannot see my file.  This is a very important file for me so I really need to be able to recover it.  I haven't found any file manager type programs that will allow me to see it and rename it.
Any ideas?
Thanks.

Yes, this is so true! I was hoping it would be fixed with the iOS8 release and iCloud Drive, but sadly that has not happened.
I could live with a keyboard shortcut, but you cannot expect me to scroll down just to add an item if I want to use this a lot on the web (which I would like to do).

Similar Messages

  • How to declare internal table in BADI with variable name beginning with 0..

    Gurus,
    How to declare an internal table within a BADI. I have to implement a BADI UC_TASK_CUSTOM for BCS to BW load and there i have to  declare an internal table like:
    TYPES:          BEGIN OF t_cube_data,
                    0cs_version       TYPE /bi0/oics_version,
                    0sem_cgcomp       TYPE /bi0/oisem_cgcomp,
                    bcs_vers          TYPE /bic/oibcs_vers,
                    bcs_lcus          TYPE /bic/oibcs_lcus,
                    bcs_ldch          TYPE /bic/oibcs_ldch,
                    bcs_invcom       TYPE /bi0/oibcs_invcom,
                    bcs_litem         TYPE /bic/oibcs_litem,
                    bcs_llob          TYPE /bic/oibcs_llob,
                    bcs_lmay          TYPE /bic/oibcs_lmay,
                    0move_type        TYPE /bi0/oimove_type,
                    pcompany         TYPE /bi0/oipcompany,
                    bcs_lprg          TYPE /bic/oibcs_lprg,
                    figlxref3         TYPE /bic/oifiglxref3,
                    fiscyear         TYPE /bi0/oifiscyear,
                    fiscper3         TYPE /bi0/oifiscper3,
                    fiscvarnt        TYPE /bi0/oifiscvarnt,
                    curkey_gc        TYPE /bi0/oicurkey_gc,
                    unit             TYPE /bi0/oiunit,
                    cs_trn_gc        TYPE /bi0/oics_trn_gc,
                    cs_trn_qty       TYPE /bi0/oics_trn_qty,
              END OF t_cube_data
    But with this declaration it gives a error saying that u cannot have a variable beginning with 0...like 0cs_version....
    but i have to do it for my functionality to wrk...
    Please help me do it....
    how can i declare a internal table that allows me to have variable names that start with 0....
    Please help....Its URGENT....
    Thanks
    Sam

    Murali,
    I need to have 0 before the variable name in the declaration of the internal table....how can i attain that....
    Please suggest...
    Thanks
    Sam

  • @count for first names beginning with "

    I was trying to come up with a formula for counting club members and partners by using an "&" in front of the first name of partners. I could not find a conditional function whereby I could count the names that begin with the "&". I used trial and error with various count functions on strings with if thens, etc. I either end up with syntax errors or a null. Not that important but I like solving puzzles and may find a use for the concept with other strings in the future. Bottom line is: I would like to pick out a unique character at the beginning of different strings and count it (numerically) if is there (true).

    Here's an alternative that is similar to Jerry's, but allows placing the ampersand in a more logical location in the Name column entries. The yellow-filled column (Flag) may be hidden.
    Column B: Entered data (names), with an ampersand used to join names of partners where applicable.
    Column C (Flag) contains a formula that places a null string in rows where there is no entry in the column B (Name), zero in rows where the names entry does not contain an ampersand, and a number larger than zero corresponding to the position of the ampersand in rows where the Names entry has one.
    C2, and filled down: =IF(LEN(B)>0,IFERROR(FIND("&",B),0),"")
    Cells D2 and E2 contain similar formulas to count the two-name (partner) entries and the single name entries, using the flags set in column C.
    D2: =COUNTIF(C,">0")
    E2: =COUNTIF(C,"=0")
    Regards,
    Barry

  • CFUPDATE problem with field name beginning with a number

    I have a form (actually several) that is gathering data for a survey. I tried to use cfupdate to update the data elements and got a string index out of range error. I tested again without the form fields that began with numbers and it worked just fine. I then tried to enclose the offending field names in () and []. Both times I got same error. Does anyone have a work around for this? The code and error are below.
    Changing the field names is not really an option. This survey has almost 400 data points and most of the fields begin with the question number.
    Thanks
    DW
    <cfupdate datasource="#application.fdp_datasource#" tablename="arra_survey1" dbtype="ODBC" formfields = "entry_no, 2_a_fy09, '2_a_fy10', '2_a_fy11', '2_a_fy12', '2_b_fy09', '2_b_fy10', '2_b_fy11', '2_b_fy12', '2_c_fy09', '2_c_fy10', '2_c_fy11', '2_c_fy12', '2_d_fy09', '2_d_fy10', '2_d_fy11', '2_d_fy12', '2_e_fy09', '2_e_fy10', '2_e_fy11', '2_e_fy12', '2_f_fy09', '2_f_fy10', '2_f_fy11', '2_f_fy12', '2_g_fy09', '2_g_fy10', '2_g_fy11', '2_g_fy12', '2_h_fy09', '2_h_fy10', '2_h_fy11', '2_h_fy12', '2_i_fy09', '2_i_fy10', '2_i_fy11', '2_i_fy12', '2_j_fy09', '2_j_fy10', '2_j_fy11', '2_j_fy12', '2_k_fy09', '2_k_fy10', '2_k_fy11', '2_k_fy12', '2_l_fy09', '2_l_fy10', '2_l_fy11', '2_l_fy12', central_office, dept_office, incl_other, 3_a_fy09, 3_a_fy10, 3_a_fy11, 3_a_fy12, 3_b_fy09, 3_b_fy10, 3_b_fy11, 3_b_fy12, 3_c_fy09, 3_c_fy10, 3_c_fy11, 3_c_fy12, 3_d_fy09, 3_d_fy10 3_d_fy11, 3_d_fy12, 3_e_fy09, 3_e_fy10, 3_e_fy11, 3_e_fy12, 3_f_fy09, 3_f_fy10, 3_f_fy11, 3_f_fy12, 3_g_fy09, 3_g_fy10, 3_g_fy11, 3_g_fy12, 3_h_fy09, 3_h_fy10, 3_h_fy11, 3_h_fy12, 3_i_fy09, 3_i_fy10, 3_i_fy11, 3_i_fy12, 3_j_fy09, 3_j_fy10, 3_j_fy11, 3_j_fy12, 3_k_fy09, 3_k_fy10, 3_k_fy11, 3_k_fy12, 3_l_fy09, 3_l_fy10, 3_l_fy11, 3_l_fy12">
    String index out of range: -2
    The error occurred in C:\Inetpub\wwwroot\directory\process_arra_suvey_2.cfm: line 12
    12 : <cfupdate datasource="#application.fdp_datasource#" tablename="arra_survey1" dbtype="ODBC" formfields = "entry_no, 2_a_fy09, '2_a_fy10', '2_a_fy11', ...

    I think you have run one of CFUPDATE's limitations.  I am not 100% certain, but I do not think cfupdate provides a way to escape invalid column names like yours.  In which case you may need to do a regular UPDATE within a  cfquery instead... or rename your columns.
    fields that began with numbers
    Most databases discourage creating column names that start with a number (or other restricted characters).  While many databases will allow you to escape invalid names, it is simpler all around to avoid them altogether.  Otherwise, you may have to escape the names in every single query. The recommendations vary, but usually object names that begin with a  letter, and contain only letters, numbers and underscores are considered  safe.
    This survey has almost 400 data points and most of the fields begin with the question number.
    Four-hundred (400) is a lot of columns for a single table.  The fact that they all them seem to contain the same type of information (ie response to a question) is an indication that data should probably be stored in a separate table, as rows, not columns.  For example questions could be stored in one table, possible answers in another, and the results of an individual test/survey stored in a third table.  A structure like that is much easier to query, can easily accommodate changes (add/remove questions, responses, etcetera) without having modify the table every time.

  • Trying to compose a new email. Addind the name in the "TO" ared brings up other names beginning with same letter but I can't clear these other names.

    Addressing an email problem. Manually putting a email address is the TO area brings up other names ( with same first letter) from the contact list. this list of unwanted names freezes in place and won't go away unless I restart Firefox. This list blocks my view of the address and composition area. This has been happening for a few days. If i use Chrome, I don't have this problem...only with Firefox. My OS is XP if that matters.

    Tried clearing. No Change. I select "NEW" then manually type in a email address which then pops up additional names for me to select/ highlight . I can select or highlight additional names if i want to but I can't get rid of the names or the window where these names appear. Even if I select my IN BOX or SENT this window with all the names is there and obstructs my view and use. It can't be deleted

  • Can't open files where the name starts with a number

    On our network server, we have some folders where the files are numbered. Example:
    1 - Memo
    2 - Agenda
    3 - Report X
    4 - Report Y
    5 - Report Z
    We have 5 Macs in our office. Everybody can read these files fine except for one person. On her computer she can't open any file that starts with a number and gets the below error message. How do I fix this?
    All our Macs (to the best of my knowledge) are setup exactly the same since they were purchased at the same time late last year.

    Word - Microsoft Support

  • IWork Pages - How to make sentences begin with a capital letter?

    After loading Mavericks I updated my PAGES app to Version 5.0. 
    Cannot figure out how to start each sentence with the first letter capitalized automatically.

    If 'dropped' that would be a real bummer!
    I really would like to purge Microsoft Word 4 from all my Macs.  I was really hoping Pages has matured into a modern robust word processor. The opposite seems the case....it seems more basic than the Mac word processors of the late 1980's.  Thanks for your input........not good news if true.......but I'm afraid you are right.

  • Help! I renamed an existing file in Reader (Mobile) to begin with "." and it disappeared. Unable to search for it. How can I recover it? [iOS]

    I was attempting to organize my files in Reader (on iPad) and I tried renaming an existing file to begin with "." in an attempt to put it at the top of my list, so that I could easily find it. It completely diappeared and if I search for it, it doesn't appear. Help!!!

    Hi,
    A file or folder name starting with '.' ("dot" or "period") is considered hidden on most operating systems.  By naming a file starting with '.', you accidentally hid the file and made it inaccessible to all iOS apps.
    I'd highly recommend using '_' ("underscore") in the future.
    We have already made the change to the new Acrobat DC for iOS app (version 15.0.x) so that it disallows the rename operation with '.' as the first character.  (I assume that you are using Adobe Reader for iOS on iOS 7 or older iOS version.)
    To recover your hidden file, you need to use a Windows or Mac desktop/laptop computer, install a File Manager app (e.g. iExplorer free demo version, iFunBox), connect your iPad, browse the file system on your iPad, and rename the file back to something else (so that it becomes "visible" again).
    The exact steps vary depending on the File Manager app you choose.  You may be able to find How-To videos on the software manufacturer's web site or YouTube.
    Don't worry.  Your hidden file is not permanently lost.  You just need to recover it.  Good luck!

  • Hi - When I go into Contacts and type a letter in the search bar to get to last names that begin with that letter I get a list of random names that don't correlate to the letter. My settings are fine.  Help ?

    Hi. When I go into my contacts and type a letter in the saerch bar to get to a list of last names that begin with that letter I get a list of random names that don't begin or end with the letter.  My Settings appear fine.  Any insights would be greatly appreciated.  Cheers Bill

    The search bar is not designed to take you to names beginning with the letter you put in. If you want to do that, use the letters down the side. In the search bar, the device will return results for all contacts that have that have that letter in them. If you type a couple of letters of the name, you'll find what you want faster. Once you get used to how it works, it's quite efficient.
    Best of luck.

  • Page file issue

    hello team,
    We have a weird issue running on one of the servers(w2k8 R2 ENt) where the page file is not getting saved on the reboot..i.e we set a value for page file 0f 200GB via GUI and the registry key also shows to be same..but on reboot of the server the value gets
    chnaged to random numbers i.e sometime 25Gb or 45Gb and registry keys shows the same vaule as 200GB..
    Anyone who faced such issue and any fix available for it.
    Tried number of things:
    Cleaned page file with option set to none..system rebooted..page file set to 200GB..on next reboot the value changes
    Set it to automatic and then set the values back but on reboot the value chnages
    Clean page file at shutdown
    Sfc scan 
    tried setting page file via command line but to no go
    saving the page file by another name pagefile1.sys/pagefile2.sys..
    No options seem to be working...
    ManeeshB

    Hi ManeeshB,
    Could you refer the following KB to use PowerShell cmdlet to set the pagefile then monitor this issue again.
    Configure memory dump files for Server Core installation options of Windows Server 2008
    https://technet.microsoft.com/en-us/library/ee424384(v=ws.10).aspx
    The related KB:
    Best Practices for Page File and Minimum Drive Size for OS Partition on Windows Servers
    http://social.technet.microsoft.com/wiki/contents/articles/13383.best-practices-for-page-file-and-minimum-drive-size-for-os-partition-on-windows-servers.aspx
    Please refer the following KB to confirm you have not use the “Clear virtual memory pagefile when system shuts down” Group Policy:
    Clear virtual memory pagefile when system shuts down Group Policy
    http://support.microsoft.com/kb/320423
    More information quote from Windows Internals.
    What triggers the file to grow?
    Page file grows as the system needs additional memory to satisfy the memory pressure load being placed on it by the software running on the system.
    What triggers the file to shrink?
    If the Paging file(s) have increased from the minimum as a result of memory load the system will shrink the paging file provided there is space for a sufficient number of free
    pages still left after the shrinking for a sudden need of page file space. 
    The check to determine if the paging file can be reduced is performed when a process exits. 
    I’m glad to be of help to you!
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Wrong Name Associated With iPhone

    Hey guys,
    I just recently used the new Maps app on my iPhone 4S (iOS 7) to text somebody my location when I noticed the name that came up on the link/picture is wrong. My name is Ryan and my last name begins with an S, and since I also have a friend on my contacts list with the same first name (Ryan) and last letter of last name (S) the phone somehow thinks that that individual is me. I also noticed that next to my friends name in the contacts list it says "me". I have no idea how to fix this! Any help would be greatly appreciated!

    Thanks for the tip! I would have done that right now but i deleted him off my contact list since i thought it might have somehow fixed the problem but its still registering as my friend.

  • Com.apple.ichat files missing

    My iChat hasn't been opening. I've been trying to follow the advice posted by other users and putting the /Users/macbookprompls/Library/Preferences/com.apple.iChat.AIM.plist file in the trash. It worked a couple months ago, but this morning, when my iChat failed to open, I tried to use the same method and none of the com.apple.iChat files were in either my Preferences folder or the trash.
    Help?

    You didn't try using "macbookprompls" when typing a command in Terminal.app to locate these plist files, did you? "macbookprompls" was the original poster's screen name, which I used by example to imply that (s)he needed to use his(her) short user name. So, if you were, you should be opening up, in the Finder, your user home account's Library's Preferences folder. There should be a several files in there whose names begin with "com.apple.iChat" and end with ".plist" and if you quit iChat and trash all of those files and restart iChat, it will look like a "first time ever" launch of iChat on your computer. Then you should be able to recreate any iChat, Jabber, and/or Bonjour accounts with your ichat, jabber, and/or bonjour screen names, and all should be well. Things like AIM buddy lists are maintained on AIM servers, so you won't lose those by deleting these plist files.
    If that is of no help to you, I think that with the Leopard installer DVD, you can do custom reinstallations of a limited number of Apple OEM applications, iChat being one of them. My installer DVD is not conveniently nearby for me to check, but that was the case with Tiger. Some info for custom reinstalls in Tiger can be found here. I can't find an equivalent knowledgebase article for Leopard, though. In any event, if iChat is one of the apps that the optional installs package on the Leopard installer DVD supports, you could try a reinstallation of iChat from the optional installs package on the Leopard installer DVD.
    However, before going down the optional installs route (or maybe after, too), if you launch iChat from the command line with error logging, and post the log results here, the gurus here in this forum could help you troubleshoot further. To launch iChat from the command line, start up Terminal.app (in /Applications/Utilities) and type
    /Applications/iChat.app/Contents/MacOS/iChat -errorLogLevel 7⏎ 
    and copy and paste the resulting text displayed in the Terminal window back into a follow-up post here, if iChat still refuses to launch for you.

  • Can't open pages files on iPad

    Right, I have my shiny new ipad but have a problem. I can open word documents fine, but when I try and open a .pages file it just comes up with the error "Error load document". This happens if I access a file over email or MobileMe. Why is this, as the MS Office docs open up fine in pages?

    Every iPad comes with complimentary telephone technical support for 90 days. The U.K. no. is (44) 0844 209 0611 — from here:
    http://www.apple.com/support/contact/phone_contacts.html

  • E-mail Pages File

    I can't e-mail a Pages file. When saved to the desktop the e-mail attachment is dimmed out and not available apparently to go out as an attachment....Yahoo Mail.

    Only God and Steve Jobs really know this stuff...
    When I saved my Pages file it did not give me an option of format...just saves it in Pages format. The Forum people said to Export it using the Export command which I did choosing Word as my destination and i noticed my Pages file when exported coming up with the word Zip under it. I assumed this made it easier to mail.
    Anyway, it worked...for me that is...
    I would think it would have been easier in the first place to combine the Export and Save/Save As commands...

  • !! Help for a looong script... begin with compare name of files, date...

    Hello Everybody, and thank you very much if you can answer to my little problem
    So here is the beginning of my script. At the end it will be a script to batch convert Psd files to jpeg in different resolutions, in different folders.
    I wanted to understand subtlety some parts of applescript, but I have to say that I failed for this case.
    So the part I am looking for is to compare files between two folders, not exactly like syncing.
    In the first Folder, psds files.
    In the second, Jpgs, wich have been made from the psds, with a 2nd part of the script, batch to jpeg.
    I want to compare these files to tell the 2nd script not to batch them to jpeg if they have not been modified.
    So the steps I would like to write :
    tell applescript to :
    1 -
    get every files of folder "psd" without invisibles
    get only the names of these files without extension
    get the modification date of these files
    2-
    get every files of folder "jpg" without invisibles
    get only the names of these files without extension
    get the modification date of these files
    3- compare the names of the files in psd's and jpg's folders (it's why I didn't want the extension)
    if some or all Psds already exist in jpg folder, then
    compare the modification dates of these same files
    and if these files in psd folder are more recent than in jpeg folder, then
    get only these modified files in psd folder, and, also the new ones (not existing in jpg folder).
    and --
    4 - launch my batchconverttojpg for this result
    (at this moment I only want to find steps 1, 2 and 3)
    --- It is important for me to do that, because the files in psd's folder will always change, and I can have really big files (like 500 or 800 mo each), and it will be really faster to batch only modified files…
    --- Here is the beginning of the script I am writing, but … bug bug bug, I don't find the good way to write that…
    set folder1 to "Macintosh HD:Users:Me:Desktop:test batch convert-script:psds" as string
    set folder2 to "Macintosh HD:Users:Me:Desktop:test batch convert-script:jpegs:Jpegs" as string
    set AppleScript's text item delimiters to ""
    tell application "System Events"
    set imgsources to every file of folder folder1 whose name does not start with "." and (file type is "psd" or file type is "JPG" or name extension is "psd" or name extension is "jpg")
    set imgcibles to every file of folder folder2 whose name does not start with "." and (file type is "psd" or file type is "JPG" or name extension is "psd" or name extension is "jpg")
    end tell
    --tell application "Finder"
    repeat with i from 1 to the count of imgsources without invisibles
    set img to (item i of imgsources as alias)
    set infosource to info for img
    set nameimg1 to name of infosource -- recupere le nom de limage + extension
    --set extimg2 to items -1 thru -4 of nameimg2 as text -- recupere l'extension
    set nimg1 to items 1 thru -5 of nameimg1 as text -- recupere le nom
    set moddateimg1 to modification date of infosource -- recupere la date de modif
    repeat with i from 1 to the count of imgcibles without invisibles
    set img2 to (item i of imgcibles as list) -- recupere tous les elements du dossier
    set infocible to info for img2 -- recupere les infos
    set nameimg2 to name of infocible -- recupere le nom de limage de destination
    set extimg2 to items -1 thru -4 of nameimg2 as text -- recupere l'extension
    set nimg2 to items 1 thru -5 of nameimg2 as text -- recupere le nom
    set moddateimg2 to modification date of infocible -- recupere la date de modif
    tell application "Finder"
    if nimg1 = nimg2 as text then
    --set nimg1 to nimg1 as string
    --set nimg2 to nimg2 as string
    --set name of img2 to folder2 & ":" & nimg2 & "-" & "2" & extimg2 as text
    set name of img2 to nimg2 & "-" & "2" & extimg2
    -- I am just trying to rename the file at this step.
    -- After this, I will compare the dates, and then, batch convert.
    end if
    end tell
    end repeat
    end repeat
    So if one of you have the good solution It will be a miracle for me
    I have to say that if I wrote this script in a simple way like that, it's to be able to understand what I do, or to understand the script after 6 month, without thinking about it…
    Thank you very much for your answers
    Fred

    Ok so there are a lot of things I didn't know about some details… And I see that I will never have succeed to write something like that…
    I don't really understand why to "set psdNames to --> {}" this last detail is unknown for me…
    And if I understand, the thing I missed is to do a listindex of the items ? it's why I didn't succeed to compare the files ?
    Then I though that it could be interesting for you or differents users to see the result. I think it works perfectly now.
    Of course, I am not professional in applescript editing, so if you have some comments or modifications, do not hesitate to post them here
    Thanks again to Red_Menace !
    Fred
    Here it is :
    (sorry I didnt translate all the notes to English. Just have to know that the script proceed in the folder where it is. If it's not save in the good folder before execute, or save as application in the good folder, then it will proceed in the default folder "applications"... so careful
    display dialog " Attention, Le script va créer un dossier psd, et déplacer les fichiers psds ici dans ce nouveau dossier" & return & " Et va ensuite procéder à la création de" & return & " Jpegs dans différents dossiers" buttons {"Ok", "Annuler", "+ d'explications"} default button "OK"
    if button returned of the result is "+ d'explications" then
    explications()
    return
    end if
    --Application utilisée : adobe photoshop CS3
    --Changer la version si besoin dans les lignes ci dessous
    --Changer le nom des dossiers ici, sans avoir à changer le reste du script
    set nomdossierpsds to "psds"
    set psdsFolder to nomdossierpsds
    set tempFolderName to "Exports"
    set tempfoldername1 to "Jpegs_HD"
    set tempfoldername2 to "Jpegs_SD"
    --Pour changer la taille des Jpegs SD --
    set choixtaille to "1200"
    tell application "Finder"
    set racine to get folder of (path to me) as Unicode text
    set nomprojet to name of folder racine
    --if folder psd exists but with different case
    if exists folder "psd" in folder racine then
    set name of folder "psd" in folder racine to psdsFolder
    end if
    if exists folder "Psd" in folder racine then
    set name of folder "psd" in folder racine to psdsFolder
    end if
    if exists folder "Psds" in folder racine then
    set name of folder "Psds" in folder racine to psdsFolder
    end if
    --2 -- check si le dossier psd existe, sinon le crée.
    if not (exists folder psdsFolder in folder racine) then
    make new folder in folder racine with properties {name:psdsFolder}
    set psdsFolder to folder psdsFolder in folder racine as alias
    open folder psdsFolder
    --display dialog "Avant de Continuer, Placer les images dans le dossier Psds" buttons {"Annuler"} default button 1
    else
    set psdsFolder to folder (racine & "psds") as alias
    end if
    --if Psd folder didnt exists, then move psd files in
    set psds to (files of folder racine whose name extension is "psd")
    move psds to folder psdsFolder
    --Dossier Jpegs Racine -- outputFolder -- check si present sinon creation
    if not (exists folder ((racine as string) & tempFolderName)) then
    set outputFolder to make new folder at racine with properties {name:tempFolderName}
    else
    set outputFolder to folder ((racine as string) & tempFolderName)
    end if
    --Dossier Jpegs HD -- outputFolder1 pour photoshop -- check si present sinon creation
    if not (exists folder (((racine as string) & tempFolderName as string) & ":" & tempfoldername1)) then
    set outputFolder1 to make new folder at outputFolder with properties {name:tempfoldername1}
    else
    set outputFolder1 to folder ((racine as string) & tempFolderName & ":" & tempfoldername1)
    end if
    set outputFolder1 to outputFolder1 as alias
    --Dossier Jpegs SD -- outputFolder2 pour photoshop -- check si present sinon creation
    if not (exists folder (((racine as string) & tempFolderName as string) & ":" & tempfoldername2)) then
    set outputFolder2 to make new folder at outputFolder with properties {name:tempfoldername2}
    else
    set outputFolder2 to folder ((racine as string) & tempFolderName & ":" & tempfoldername2)
    end if
    set outputFolder2 to outputFolder2 as alias
    end tell
    --recupere le chemin du dossier des psds à procéder
    tell application "Finder"
    set psdsFolder to folder (racine & nomdossierpsds) as alias
    end tell
    --1
    tell application "Finder" -- get file items from the folders (coerce list items to aliases for use later)
    set psdFiles to (files of folder psdsFolder whose name extension is "psd") as alias list
    set jpgFiles to (files of folder outputFolder1 whose name extension is "jpg" or name extension is "psd") as alias list
    end tell
    --2
    set psdNames to {} -- get the psd file names (these are in the same order as the file items)
    repeat with anItem in psdFiles
    set the end of psdNames to (justTheName from anItem)
    end repeat
    set jpgNames to {} -- get the jpg file names (these are in the same order as the file items)
    repeat with anItem in jpgFiles
    set the end of jpgNames to (justTheName from anItem)
    end repeat
    --3
    set filesList to {} -- figure out the files to process
    repeat with X from 1 to (count psdNames)
    set theName to contents of (item X of psdNames) -- get a name from the psd list
    if theName is in jpgNames then -- found a jpg match, so check the date
    set match to (listIndex of theName from jpgNames) -- get the index of the matching name
    tell application "Finder" -- look up the file items for the matching names and get the dates
    set psdDate to modification date of (item X of psdFiles)
    set jpgDate to modification date of (item match of jpgFiles)
    end tell
    if psdDate > jpgDate then set the end of filesList to (item X of psdFiles) -- newer file, so add
    else -- no match, so add
    set the end of filesList to (item X of psdFiles)
    end if
    end repeat
    filesList --> this list contains items (aliases) that are not in jpgsFolder or have a newer modification date
    tell application "Adobe Photoshop CS3"
    activate
    set display dialogs to never
    close every document saving no
    end tell
    repeat with aFile in filesList
    set fileIndex to 0
    tell application "Finder"
    -- The step below is important because the 'aFile' reference as returned by
    -- Finder associates the file with Finder and not Photoshop. By converting
    -- the reference below 'as alias', the reference used by 'open' will be
    -- correctly handled by Photoshop rather than Finder.
    set theFile to aFile as alias
    set theFileName to name of theFile
    end tell
    tell application "Adobe Photoshop CS3"
    activate
    open theFile
    set docRef to the current document
    set docHeight to height of docRef
    set docWidth to width of docRef
    ------------------------------------------------------------------- 1st Export to jpeg
    --Convert the document to a document mode that supports saving as jpeg
    flatten docRef
    tell docRef to convert to profile "sRGB IEC61966-2.1" intent perceptual with dithering and blackpoint compensation
    if (bits per channel of docRef is sixteen) then
    set bits per channel of docRef to eight
    end if
    --The first copy is simply saved with additional document info added
    set infoRef to get info of docRef
    set copyright notice of infoRef to "Copyright Frédéric Perrin"
    set docName to name of docRef
    set docBaseName to getBaseName(docName) of me
    --set fileIndex to fileIndex + 1
    set newFileName to (outputFolder1 as string) & docBaseName & ".jpg"
    save docRef in file newFileName as JPEG appending lowercase extension with options {class:JPEG save options, quality:12, format options:optimized}
    ------------------------------------------------------------------- 2nd export to jpeg
    -- The second copy is saved resized to width of 100 pixels proportionally
    -- There is no scale constraint in the resize image command.
    -- Use the height/width ratio to simulate the option.
    set ruler units of settings to pixel units
    set type units of settings to pixel units
    resize image current document width choixtaille height (choixtaille * docHeight / docWidth)
    -- repete la mise en memoire des variables, sinon des bugs
    set docRef to the current document
    set docName to name of docRef
    set docBaseName to getBaseName(docName) of me
    --set fileIndex to fileIndex + 1
    set newFileName2 to (outputFolder2 as string) & docBaseName & "-" & choixtaille & ".jpg"
    save docRef in file newFileName2 as JPEG appending lowercase extension --with options {class:JPEG save options, quality:12, format options:optimized}
    -- The original document is closed without saving so it remains as it was
    -- when opened for batch processing
    close current document without saving
    end tell
    end repeat
    -- Routines
    -- Returns the document name without extension (if present)
    on getBaseName(fName)
    set baseName to fName
    repeat with idx from 1 to (length of fName)
    if (item idx of fName = ".") then
    set baseName to (items 1 thru (idx - 1) of fName) as string
    exit repeat
    end if
    end repeat
    return baseName
    end getBaseName
    on justTheName from someFile
    get the name from a file path
    parameters - someFile [various]: a complete file path (POSIX or Finder)
    returns [text] - the base file name
    set someFile to someFile as text
    tell application "System Events" to tell disk item someFile
    set {theName, theExtension} to {name, name extension}
    end tell
    if theExtension is in {missing value, ""} then
    set theExtension to ""
    else
    set theExtension to "." & theExtension
    end if
    return text 1 thru -((count theExtension) + 1) of theName -- just the name part
    end justTheName
    to listIndex of anItem from someList
    get the (first) index of anItem in someList
    parameters - anItem [various]: the item to look for
    someList [list]: the list to look in
    returns [integer]: the index (0 if not found)
    set theIndex to 0
    repeat with X from 1 to (count someList)
    if (contents of (item X of someList)) is anItem then
    set theIndex to X
    exit repeat
    end if
    end repeat
    return theIndex
    end listIndex
    on explications()
    tell application "TextEdit"
    activate
    make new document
    set text of front document to ¬
    "--- Attention --- Le Script se lance pour gérer le dossier dans lequel il se trouve." & return & return & ¬
    "Pour ne plus voir ce message, ouvrir le script/application et l'éditer avec un éditeur comme Editeur applescript : Effacer alors le premier paragraphe --> End Message" & return & return & return & ¬
    "Il vérifie l'existence d'un dossier Psd, s'il existe, mais pas dans la bonne casse, renomme le dossier --" & return & "Donc -- attention -- si d'autres scripts sont chainés à ce dossier, il faudra mettre à jour la casse ou orthographe, sinon changer les variables en début de script afin que tous les scripts marchent avec le meme nom de ce dossier psd" & return & return & ¬
    "Une fois cela géré, le dossier -psds- est créé, sil n'est pas deja la. Les fichiers psds pouvant être présents à la racine du dossier, où se trouve le script, seront déplacés dans le dossier psd" & return & ¬
    "Ensuite, création d'un dossier jpeg contenant deux autres dossiers : jpgs HD et Sd, le 1er contiendra les jpegs à la resolution source du psd, le dossier Sd à la résolution de 1200px, soit acceptable pour le web ou le partage temporaire" & return & return & ¬
    "Pour finir, le script peut être relancé à l'infini, les dossiers se synchronisent en fonction du dossier Psd et JpegsHD. Si de nouveaux fichiers se trouvent dans le dossier Psd, ou bien sils ont été modifiés, alors ils seront re-batchés en jpegs dans les dossiers correspondants." & return & ¬
    "Donc -- Attention -- , ne jamais faire de retouches sur les fichiers Jpegs, seulement sur les psds, et -- attention-- aussi, les fichiers jpegs correspondants aux psds retouchés seront écrasés" & return & ¬
    "Pour conserver des versions des fichiers, à la main, renommer séquentiellement les psds à l'enregistrement dans photoshop, ainsi les jpegs seront séquentiels aussi" & return & return & return & ¬
    "La préférence, de choisir à la main la séquence des fichiers psds semble être plus pratique à l'usage, et de garder un minimum la main sur les images, afin de s'y retrouver" & return & return & return
    end tell
    end explications
    -------------------------------------------------------------------

Maybe you are looking for