Change the name of the file of "Import.xls" selection in Applescript

Hi, I'm a tiger, but I try to change the name of a file in a folder (which can be any name that is) a name known.  In the end, just trying to import a file known to filemaker and need the name to be a known name.  That's what I have so far, but I have simply not success.  This goes to the folder 2 window and selects the first file... no problem, but, I can't seem to change the name of 'import.xls '.  Only excel files will be present in this folder, so I'm not worried about it.

The other thing I would do is if there is no file in this folder to jump above everything and do nothing.

Thanks for your help!

Tell application "Finder".

activate

the value target of Finder window 2 to folder "Orders_to_Enter" of folder "Documents" of the file 'MINIJOHN'from folder 'Users' of startup disk

Select the first file of the window of Finder 2

Try

the value the name of the selection of "IMPORT.xls".

end try

end say


say

Hello

No need to manipulate the selection. You can just write something like this:

set d to (path to documents folder as string) & "Orders_to_Enter:" as alias
tell application "Finder"
    --open item d -- optional
    tell (item d's file 1 whose name extension = "xls")
        try
            set name to "IMPORT.xls"
        end try
    end tell
end tell

Tested under OS X 10.6.8.

Good luck

H

Tags: iOS Developer

Similar Questions

  • Can I change the file name of the .bar file

    Hello

    I built an application in Release for device mode.  He prodcued a filenamed bb10app.bar. Is it possible to change the file name to tell xyz.bar after it is built.  It is an application internal meaing only avaiable to our staff.  If I do not file name change how will I know what app it is. Given that bb10app.bar seems to be a default file for any application name.

    Thank you

    Joe

    Yes, you can change the file name of the file BAR, just keep the .bar extension and you shouldn't have any problems.

  • Changing properties of the file during import to Premiere Pro

    Hello

    Strange problem I encountered: images taken with my Canon 6 d fixed changes in 1920 x 1080 / 30 fps at 1080 x 720/25 fps when they are imported into Premiere Pro (CS6). My PP settings are: Digital SLR, 1080 p 30.  Can someone help me understand what is happening here I have triple checked the camera and PP. settings This problem is forcing me to produce videos SD that I shot in HD – a real frustration!  Thank you.

    Thanks for your reply, but I just found out that the mistake was made before importing files in Premiere Pro. Initially, I had these files stored in the Mac Photos and did not know that by dragging to the desktop would change the file properties. To keep the original properties, you must go to file > export > export original unmodified.

  • How can I change the file name on the home page?

    I'm changing the file name of the home page...

    I'm on page properties > options > filename... but he is frozen as index.html

    Is there a way to change that and name it something else?

    Hello

    As most web servers consider index.html as the site's home page, the option is grayed out in Muse to rename indexes (homepage).

    How ever, you can go ahead and change the name to other pages in the site map.

    Concerning

    Vivek

  • [Solved] When you change the file type for RAR files, it also changes the file type of the ISO XP files

    I tried to change the file type description, as well as in default and the icon for the rar and iso programs file types inmenu\ tools\folder options\file typest\advanced, but to change the settings on a file type automatically changes settings on the other.

    How can I do this via regedit?  What can cause a bug?

    * original title - xp: types of files RAR and ISO locked together, the same treatment! *

    Hello

    1. How are you sure that you change the individual file extension and not the entire folder?
    2. how exactly you try this?

    To change a name of file, all you have to do is right click on the file, and then click Rename, instead of the path you describe in the thread.

    See also the section below to associate the default program for different file types.
    How to change or choose the program that starts when you double-click a file in Windows XP
    http://support.Microsoft.com/kb/307859

  • How can I change the options to import to an Excel spreadsheet in InDesign CS5.5?

    Hello

    I have a problem with a script InDesign that works this way in ID CS4 and CS5 ID, but stops working in ID CS5.5.

    What the script must do, is to change the preferences to import to a table saved in an Excel file so that I can place a table not formatted in a new textFrame in my InDesign document. The Excel document is a .xlsx file.

    function setExcelImportPrefs() {
        with (app.excelImportPreferences) {
             app.excelImportPreferences.tableFormatting = TableFormattingOptions.excelUnformattedTable;
            }
    }
    

    What the script (or at least seems to do) is: nothing. The table that is placed in the textFrame by the script is always formatted, as seems to be the standard InDesign CS5.5 preference to import tables from excel files.

    Does anyone have a hint for me how to make the script work in ID CS5.5?

    As it works on my machine (!), a reason may be that just the spelling should be: TableFormattingOptions.EXCEL_UNFORMATTED_TABLE

  • Change the file extension

    I use Windows XP Home Edition.  How do you change the file extension when the system cannot open the picture?  It was recorded as "All Files".

    Go to control panel, folder (in Classic view) options, go to the view tab and scroll down to find Hide extensions of known file types.  Uncheck the box and click on the file.  Rename the file and change the file extension.

  • Change the highlight color when you select files or folders

    Hello
    Need assistance to change the highlight color when you select files or folders in Windows Explorer / my document.
    I use Windows Vista with SP2.  I tried to go to control-online personalization panel => color & appearance of the window and changing the settings.  However, I can't change the intensity of the highlights that I see it clearly.  A little blind colours, I would like to change the color to make it darker so that I could clearly see when an item is selected.
    I tried open classic appearance for color options properties more-online advance but did not find an appropriate under "Item" option that I could change.  I tried the step "Selected items" under ' point:' but that only applies when I double click on a file or folder.
    Any advice would be greatly appreciated.
    The

    Salvation of

    Sorry to hear that the option is good enough for you.  I've done some research more and that you still do not see a way to change what you're asking.  As I said before, others have mentioned this issue as well.  If I come across a way to do it, I'll post it here.

    In the meantime, I'm going to Mark this post as answer whose answer is:

    Currently, there is no way to make this change in Windows Vista.

    Thanks for posting on Microsoft Answers.
    Ken
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Setup could not initialize - I've lost hours trying to find solutions online and forum... to change the file to add .old - does not work; Open the file 2/2 still didn't work... Help!

    Setup could not initialize - I've lost hours trying to find solutions online and forum... to change the file to add .old - does not work; Open the file 2/2 still didn't work... Help!

    Please see the links below:

    https://forums.Adobe.com/thread/1848277

    https://forums.Adobe.com/thread/2055767

    Let us know, if you still get the same error even after trying it all the steps mentioned

  • Cannot change the file AdobeCaptivate.ini

    I just installed the latest version of Captivate on my new Zenbook and when I tired to record a demo, I got this message: "Capture is denied because the high-density display has been detected. "Please Set DpiAwareness = 1 in AdobeCaptivate.ini and restart the application.

    So I found the file, open it in Notepad and edited. But when I tried to save, I received this message: having said yes, I did not want to replace the file, the error message says that access is denied.

    What should I do next?

    Thank you!!

    Try to copy the file, and paste it on the desktop. Open it and change it, save it, and then drag it to the folder Adobe Captivate 9 x 64. It will ask you information Admin ID change the file, enter your creds and this job should .

    Jord-

  • New update has changed the way to import pictures

    I don't like how Adobe has changed the way to import pictures after the update. Is there anyway to go back to the old?

    I really don't like this new import feature.

    Adobe product designers rarely participate in this forum. Please add your vote and view detailed in the official Adobe feedback forum: Lightroom: restore the features removed import into LR 6.2 / CC 2015.2. More people who vote, the more likely Adobe will pay attention.

  • LR 2.4 now changes the file names with the suffix - 2 when importing

    On Vista...

    was perfectly ok, but suddenly it adds now suffix-2 to all files when importing... and this can be seen in the Explorer to do!

    Do not change parameter.

    Have checked all the settings / options that I can find, but can't find what does it... the damned that is annoying when importing of large amounts of files (a couple).

    Any suggestions please?

    I'll try all of the suggestions, even if I already did... Thank you very much.

    ... will be here for 4 days... Why choose a destination vacation without internet access? !!! ???

    In catalog settings, file management you can set sequence number of import, you can set it to start at 2.

    In the import dialog itself that you have a wide choice of naming conventions in the drop-down list of file naming, if value Filename or custom - order of the name it will apply the sequence as shown in the catalog settings.

  • Fix changed the file names?

    I had problems with my gel PSE8, through mutual assistance, suggested to delete the word Photoshop file name in an article, it is to stop conflicts and create a shortcut... It seemed easy enough... so I changed a bit. Now, I can't access my organizer via PSE8 or PE8. I don't know what that file names appropriate to change things back.

    I considered uninstallyng and put back in place, only I don't seem to have a copy of these files. I origanally purchased by adobe online and I always had access to them... I thought, well I did once, but I guess they took their?

    Suggestions, thank you for your time.

    I guess you always have access to your serial number PSE8?

    If you decide to uninstall and reinstall, you can re - download the trial version of

    http://prodesigntools.com/direct-download-links-for-Lightroom-3-and-Photoshop-elements-8.h tml

    Make sure that you follow the Instructions very Important on this page first otherwise the links do not work.

    When you launch the trial, enter your serial number PSE8 to convert it into a full version.

  • Unable to customize the name of the file to import

    I am using import of multiple cameras and I would have the ability to change the "Date Format", the name of the folder in the import dialog box:

    import.JPG

    Yes, there are several formats, but it would be very useful to have the ability to set my own. For example, instead of 2012-10-06, I would have 2012_10_06. Now I have to rename all my files after importing, which is not very comfortable. I think that the best way to make this perfect would be to use 'Editor file name patterns' (used to rename files) for the folder names too.

    Thank you.

    See this hack http://digital-photography-howto.com/how-to-import-files-into-custom-directory-structures-par-jour-dans-lightroom-3 /

  • Changing the file names of the photos used in the projects final cut express

    HI, I have a lot of pictures that I've used in some express HD projects final cuts.

    File names are not descriptive file name convention, but just standard camera. I want to add descriptive names, which will come out in the finder, but I don't want to damage the projects that I have created. I guess I could change one by one and tell the system where each file. But is there a better way? Thank you!!

    If you change the names in the Finder, all clips in your projects will lose the path of the file and you will have to redo the link.

    Changing names within the CTF will work OK but will not appear in the Finder, probably it will not work for you.

    I suggest you set the browser to display a miniature clip of the photo, that is maybe a solution to easily identify clips.

    Al

Maybe you are looking for

  • Determine the alternating current

    Hi, I have a difficulty to determine the alternating current. I use an op-amp and I am reading the voltage and convert the voltage running with LabVIEW. I can not get consistent results. I was wondering if anyone knew a configuration good op-amp, and

  • Drivers to be used on networked computers that are not directly connected to the HP Laserjet M1536dnf MFP

    Hi, I had problems connecting to computers on the network for printer. The printer is HP LaserJet Pro M1536dnf MFP. The computer that is connected to the printer directly via USB is fine. I downloaded solution complete driver installation on the site

  • After a reinstall of XP, my CD drive works but my DVD is not working in car

    I did a reinstall of Windows XP on an Inspiron 1150. Now, I find that the CD/DVD drive is bad conduct. Specifically, while the player accepts the CD OK it refuses to recognize the DVD. What is going on? I suspect a problem with the device driver or t

  • How to customize the start menu programs list?

    In older versions of windows, I could go to program files and go to the start menu. Here I could organize program files that appear in my Start menu. For example, I could put all my office programs in a folder called Office and all my games in the ga

  • WLAN client multiple ssid display & selection

    assuming that the two SSID on both radios, such as dot11 radio0 Private SSID SSID Public dot11 radio1 Private SSID SSID Public is a client given - that can automatically be capable - display/select the radio 5 GHz on the 2.4 Ghz? Specifically, when t