Is there a function to detect file names?

Hi Guys
I'm using actionscript to create a custom navigator for a PDF
Portfolio. Currently my navigator uses the function
getFileExtension(value.filename) to detect the filetype, and then
assign an appropriote icon. I'm wanting to change it so that it
dectects the filename, and assigns the icon based on that instead.
Are there any functions like that, something like getFilename()?
Thanks

Try: A Better Finder Rename
Search for this very cheap app and see that you have a lot of options 
including the one your are looking for.
Bridge nor finder is capable of this ABFR is
>
I would do a replace text thru finder except part of the file name I 
would like to keep will contain numbers. Any suggestions?   Thanks 
in advance!
>

Similar Messages

  • Is there any function to get the name of the days?

    Hi,
    I'm using oracle 10.2.0.1.0
    Is there any function to get the days of the week?
    like i need to get sunday,monday,tuesday.....saturday.
    I know i can use union and select the name from dual one by one.
    But just want to know whether there is any other way.
    I need to show the 7 days in a poplist in my form, thats the requirement
    Thanks

    David_Aldridge wrote:
    BluShadow wrote:
    Note: you may want to include "fm" in the format mask, otherwise the name of the day is padded with spaces:
    SQL> ed
    Wrote file afiedt.buf
    1  select replace(to_char(dt,'Day'),' ','*') as fmt1
    2        ,length(to_char(dt,'Day')) as length_fmt1
    3        ,replace(to_char(dt,'fmDay'),' ','*') as fmt2
    4        ,length(to_char(dt,'fmDay')) as length_fmt2
    5  from (select TRUNC(SYSDATE ,'DAY')+Level-1 dt
    6        from   dual
    7        connect by Level<8
    8*      )
    SQL> /
    FMT1      LENGTH_FMT1 FMT2      LENGTH_FMT2
    Monday***           9 Monday              6
    Tuesday**           9 Tuesday             7
    Wednesday           9 Wednesday           9
    Thursday*           9 Thursday            8
    Friday***           9 Friday              6
    Saturday*           9 Saturday            8
    Sunday***           9 Sunday              6
    7 rows selected.
    SQL>
    I think you should use a pl/sql function for this.
    Nah ... just joking.
    I'd be tempted to just use a union all statement to return the seven literals. People will look at it and know exactly what it does.Yeah, agreed, I was just demonstrating that the format mask of a to_char(..., 'Day') pads with spaces, which seems to have been missed in the above answers. ;)

  • Add Counter to File name when using Tran Protocol as FTP

    Hi There,
    Was wondering if there was any way to achive the same "Add Counter"  functionality used for File names in Reciever file adapter when we are using FTP as the transport protocol, this option is only provided in NFS,
    My requirement is ..
    Write files using counter on to ftp..
    say if three files already exists on the ftp server with names ...fname001, fname002 and fname003
    then the next time a file is written it should have a file name fname004 else fname001 if no file exists.
    Any help would be greatly appreciated

    No such standard functionality is available in communication channel...
    But you can try customizing ur scenario in one of the following ways...
    Case 1: If a field in source data carries the information regarding the sequence.
    You can map this value ( Directly .. or using some transformation ) in some temporary field in the target and then use a Variable substitution at the receiver communication channel.
    Case 2. If the source file name carries the sequence information. then you can enable the Adapter specific settings in the Sender communication channel , and then get the information of the source file name using the Container object in the mapping. Then assign the sequence number to a field in the target , use a Variable substitution at the receiver communication channel.
    Case 3 : If Case 1 and Case 2 are not applicable ... then you have to use a Ztable to store the sequence number , a function module to fetch the number , and then use a UDF in which you will implement the RFC call logic.Then the same process .... assign the sequence number to a field in the target , use a Variable substitution at the receiver communication channel.
    BR,
    Sushil.

  • Show file name

    Is there a way to show file names with the events, in the event library window?

    Sevy2205 wrote:
    ...  I imported a large number of files and I want to make sure I have them all and they are some I want to identify quickly, I am looking for a way to see the file name in the event library....
    that is beyond the CONCEPT of this 15€ consumer product
    iM is meant for camcorder-imports - cams give automatic file-names with very little information (clip001); the more important info are in the meta-tags (when, perhaps where, after analyzing who, what) .. so, from the intended perspective of this app, there's no need/function to display clip-names.
    the EVENT-concept structures on time-stamp, based upon the assumption, you record your movies on some 'daily' basis, think of vacations, city-trips, holidays ...
    for your workflow, using 'files', I would suggest to prep all files in Finder, create folders, re-name them, arrange them (you do know, in Finder hitting Space-bar when a file is selected, it shows a preview? video as motion pictures?), whatever to structure them, THEN import to iM for editing.-

  • FM for getting teh file name with path

    Hi guys,
    Is there an fm getting the file name with path given the physical path and file name? Thanks!

    Hi Mark,
    Function Module WS_FILENAME_GET is obsolete, dont use it.
    Use the Method file_open_dialog of  class cl_gui_frontend_services as given below.
    DATA:
        lt_filetable TYPE filetable,
        lf_rc        TYPE i,
        lv_filename(50) TYPE c,
        lv_fileext(3) TYPE c,
        ls_file TYPE file_table,
        lv_file TYPE localfile,
        lv_title TYPE string.
      lv_title = sy-title.
      lv_progname = sy-cprog.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title            = lv_title
          file_filter             = '*.txt'
          multiselection          = abap_false
        CHANGING
          file_table              = lt_filetable
          rc                      = lf_rc
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4
          OTHERS                  = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
                   DISPLAY LIKE 'E'
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        EXIT.
      ENDIF.
    * Number of selected filed must be equal to one.
      CHECK lf_rc = 1.
    * Access selected file
      READ TABLE lt_filetable INTO ls_file INDEX 1.
      CHECK sy-subrc = 0.
      lv_file = ls_file-filename.
      SPLIT lv_file AT '.' INTO lv_filename lv_fileext.
    Revert back if you need clarifications.
    Regards
    Karthik D

  • How can I see the file name of photographs in Lightroom mobile?

    I have photographs of product wich have there reference number as the file name. When synchronizing to my iphone/ipad I don't see the file name of the photographs any more. Is there a way to show them on my mobile devices?

    Two fingers cycles through the histogram + exif info views. One finger toggles between filling the screen or revealing the filename and adjustment controls.

  • Dynamic File name in File Adapter

    Hi,
    I have a requirement to pass dynamic file name in File Adapter.
    Is there any way to pass a variable for the file name attribut in file adapter.
    I am looking for some options apart from %yyMMddHHmmss%,%SEQ%...etc
    Please suggest if any of you have information on how to put values from a variable to file name attribute in file adapter
    regards
    Saiju

    Hi Saiju,
    Yes there is.
    Assign your file name to a variable, let's say 'fileName'.
    Now go to your invoke activity(for the specific fileadapter) -> Property tab-> find a property call jca.file.FileName -> in the value field assign 'fileName' variable.
    That's it... (assuming you are using 11g)
    Arik
    Edited by: Arik on Jun 27, 2012 3:12 PM

  • Flat file to Oracle: Dynamic flat file name

    Hi,
    I am doing a transformation from flat file to oracle.
    At one place there is requirement like flat file name is dynamic.
    *eg. D:\ Flat DB\ Sample<Date>.txt   
    examples may be like Sample09012012,Sample08012012 *
    As in physical schema we specify name of file is there any way by which we can specify dynamic file name.
    as stated above.
    Any help and suggestions would be appreciated.

    Hi,
    Yes you can specify a variable in the file name ( the resource name filed) .
    You need to refresh the variable in a package and then use the interface to pick data from the file .
    Thanks,
    Sutirtha

  • How to get file name of the form attachment?

    Hi,
    is there anybody who is able to help me with the following problem???
    I started my process from Workspace ES and as a first step I attached one locale file (IMG.JPG or IMG.TIF e.g.) as a form attachment. I used "Attachments" bookmark in the Workspace ES.
    I need to get file name of attached file in the process!!!
    I tried to use "getTaskAttachments" component to get file name of form attachment but without success. This component successfully obtained attached file an stored it in the variable (type list, subtype document) but didn't produce all file attribute informations such as basename or Content Type:
    Is there some possibility to obtain file name (including file extension) by using "standard" tools and components of ALC?
    Thanks for your suggestions.

    Hi LekomDev,
    I faced the same situation some time back and this is what I know.
    Based on the file type few of the attributes will or will not be populated. (This is what the official documentation says about Document attributes)
    The file name that you are looking for would mostly be in 'name' attribute of Document object. The 'wsfilename' attribute is the atrribute which gets used to show the file name into Attachments tab of the workspace.
    So, if you are just interested in knowing the filenames then 'name' attribute is the place that you are looking for.
    But if you are trying to solve an issue in which Attachments against a Task isn't showing the filenames properly then you would need to copy the 'name' attribute value into 'wsfilename' attribute and then the Attachmetns against a Task would have the correct names.
    Tip: Use the Record and Playback option of the workbench to inspect the Document variable and you would see all of the values for a Document variable at desired step in your orchestration.
    hope this helps,
    cheers,
    Parth Pandya
    Blog: http://livecyclekarma.wordpress.com

  • Can automator identify file names longer than a specified number of characters?

    I have a lot of data that I need to ultimately archive to a PC solution but it currently has a lot of files with names longer than 256 characters.  I know I can batch update the names with automator, but what about an easy way to identify them?? Is there a way to identify file names based on file name length?

    Not in Automator.  There are other ways but the question is once you have the files what do you plan to rename them. You can't just cut off all the chars above 256 as this will not ensure uniqueness.
    So what convention will you use to make the names unique?
    As for getting the files. This command run in the terminal will return all filenames over N long
    ls | awk 'length ($0) > N'
    so in your case
    ls | awk 'length ($0) > 255'
    So this could be run from an Automator workflow or Applescript to capture the filenames you want to change. But again it's the renaming that is tricky.

  • Viewing file names in vlc in ipad

    Hi .. I'm not sure if the topic made sense.. Here is what Im trying to do ..
    Say if I'm copying bunch of episodes from a series or movies and copy to vlc via itunes, when i try to open vlc and pick any episode, it only shows me first few letters of the file. Its quite common that all the files starts with same name..(eg. Naruto_Episode or Friends_Season_ )
    Is there any way to view file name and then select it accordingly ? OR is there any other software which is out there I can use for this purpose
    I spent some amount of time in renaming every files before i copied them to iPad.I dont want to do that everytime ..
    Any suggestions / Thoughts ?
    Thanks in Advance

    Completely agree! 
    What were the developers thinking when they hid info as basic as file name from users once imported.  Even mom/pop videos like a hockey high lights vid might have 15-20 vid clips coming in at random times and different sources.
    To make users suffer with this crippled GUI just has to be one of those decisions you cynically think were made for $$$$ reasons...
    ie cripple a useful cheaper tool like iMovie so users with even modest projects has to buy/learn the more expensive tool.  
    Thanks apple!

  • Duplicate file names within iphoto

    Hi
    I have replaced my camera (my one year old son threw it in the bath!!!) and since the swap over i didnt think that there would be conflict in file names. It was either this or the crashing of my hard drive( i did have a back up of all my photos) and when i reimported them onto my computer strange things happened. In spotlight i can find up to 10 different pictures with the same name and then _1 or _2 etc added to the end. Curiously all these photos are dated the 14 jan 04 which has no relevance to the date the hard drive crashed - it crashed around the end of last year. I had backed up onto a pc server - not sure if that contributed to the file name mix up or loss of date. All the creation dates are gone but the modified date is 14/1/04.
    Now what happens is if a scroll through iphoto i can see pictures and then they change before my eyes. Also if i click on a photo another one is brought up usually the oldest photo.
    Is there a quick fix or do i need to remove all my photos and delete the library and start again?
    Hopefully someone can help
    Thanks
    Brendan

    Hello,
    This is a by-product of the MathScript implementation.  Basically, there are two matrix datatypes being used under the hood.  We are working to eliminate this issue, but you can safely ignore the warnings.  You will need to bring both folders along with your built application.
    Grant M.
    Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments

  • Attached File Names Change via Entourage

    When I attach a file to an e-mail, many times it gets changed when it's viewed on the other end. Not 8-dot-3, just different. Our naming system can be long due to the numbers of jobs here, so there's a lot of info that needs to be in there.
    For example, this file name:
    ParagonHondaEmail_CertifiedJan14.html
    changes to
    ParagonHondaEmail%2382DD8A.HTML
    Our office runs on Microsoft servers and Exchange Server for e-mail. I'm using a Microsoft (gulp) e-mail client. Is there a way around this short of having to ZIP a tiny html attachment? I've just been told this only happens with html attachments. Curious.
    Thanks for any tips.

    Thanks for taking a look, Anand. 
    Attached are the workspace and tsd file.
    Message Edited by jake_sanderson on 02-12-2009 11:34 PM
    Attachments:
    Sounder.tsw ‏2 KB
    Build Sounder Deployment V2.tsd.zip ‏3 KB

  • Exporting File Name to "Raw Data" Metadata

    At one time I was able to export a file's original file name in the "Raw Data" area of the metadata. I seem to have lost that ability in LR 4. I find this useful when a client renames a file and then wants me to find the original. I would open the file in Photoshop (or even a word processor) and the original name would be in the Raw Data area in File Info.
    When LR 4 imports the file the first time, it apparently still creates the xmp file with the file name at the end of <rdf:Description rdf:about="" field and it looks like:  crs:RawFileName="_DSC6501.NEF">
    At one time Lightroom exported that info. But now I seem to have lost that file name info, even with "Export All Metadata" selected.
    This is how it would look in Photoshop's File Info:
    <rdf:Description rdf:about=""
                xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/">
             <crs:RawFileName>DSC_8466.NEF</crs:RawFileName>
             <crs:Version>6.7</crs:Version>
             <crs:ProcessVersion>5.7</crs:ProcessVersion>
    Now it just says:
    <rdf:Description rdf:about=""
                xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/">
             <crs:Version>7.0</crs:Version>
             <crs:ProcessVersion>6.7</crs:ProcessVersion>
    What am I missing?
    Thanks!
    Stan

    Hi John, Thanks for your reply. I actually use Metadata Wrangler, but there is no "copy original file name into metadata" switch that I can see. And when you ask it to export all metadata, it actually doesn't.
    After several hours of testing I've found the culprit. Lightroom does not export all the metadata if you save it to a JPEG file, even if you tell it to. Neither does Photoshop's "Save for Web" even if you tell it to save all metadata. Both lose the field with the original file name (see my first post above).
    But if you export the file to Photoshop using the "CMD + E" command, Photoshop gets all the metadata.  If you then "Save As" a JPEG, the original file name travels to the newly created JPEG file.  It's there in the metadata. If you then do the same thing with "Save for Web" with "metadata" "all" you lose the file name field.
    So since you are asking all these programs to "save all metadata" and they don't, I would consider that a bug.
    Wouldn't you?

  • Image file names changed on Homepage

    I have found, on several occasion,s that the titles of the images on my homepage have lost their file names and show the filename iPhoto gives it when uploading to Homepage i.e. Image123A123B123C etc Sometimes, it shows OK when viewing the page but not when editing the page.
    All my images are given my job number reference for people to order from so loosing them is a big issue.
    homepage.mac.com/cjbphotography/

    The exif "image file name" is probably only used by some cameras, I don't have anything in there either.
    Instead use "file name" under "other", that is the actual file name of the master file.

Maybe you are looking for

  • Save As Dialog...One less mouse click?

    From here: http://forums.adobe.com/message/2394410#2394410 It appears that I can't remove the file formats that I never use (BMP, Scitex, Targa, Large Documetn Format, etc) , so my question is can I open the Format menus quickly by typing a type or s

  • ISE and capturing web traffic logs

    We have guests that visit our office and connect to the Guest WiFi. We want to implement ISE for the self-sign in portal. That would help us determine the user and accept the legal terms without involving IT. When a guests logs in and surfs the web,

  • Two Problems: 1) Safari/iTunes crashing 2) Beachball/Freeze

    I got my MacBook just over two weeks ago. It has been plagued with two problems: 1) Safari keeps crashing, on going to certain sites (I haven't found the pattern of the sites). iTunes crashes upon loading the music store. - It's not a plug-in problem

  • Sql+command in java

    how may i give the sql command "@c:\\emp.txt" in java? how can i then print the result on a jframe? thanks, danny

  • Sleek Photo: Album organisat

    Hi, i've been trying to get my zen sleek to store albums within sub folders, mainly cos of the large amounts of multi disk box sets I have. Is it possible to do this? At the moment they automaticly go into the artists folder, then say list the indivi