FileFilter files without extension (*.)
I want the file dialog to only show files without extension, so I set the filter to '*.', but the dialog shows no files at all.
var legendFilter: FileFilter = new FileFilter("Legende", "*.");
legendFileRef.browse([legendFilter]);
These legend files are created by another application and don't include an extension.
I cannot ask the user to rename the files prior to upload, I cannot change the output of the other application and I do want to filter to prevent selection of incompatible files as much as possible.
Flex 4.6, Windows 7
Would that be:
new FileFilter("Legende", "null")
or
new FileFilter("Legende", null)
If this is not correct, maybe you just use browse() without fileFilter,
and then check the extension property of file() that selected from file browse
Similar Messages
-
How to use Terminal to Find or Locate files without extensions?
I'm conversant with the cli, but not a power-user. I've discovered a fairly large number of audio files, across dozens of sometimes nested folders, that (somehow) lost their '.aif' extension and now appear as Unix Executable Files. Upon appending said files with the proper extension, they are perfectly normal audio aif's.
My Problem: using the Terminal, how can I search a directory tree to find those files *without* an extension, discriminating between files and folders, and then append the correct extension to only the files?
I've tried a number of queries, mostly built around the idea of using 'filename.*', but for some reason searching for an extension omission (as opposed to a specified string) isn't so simple.
The following: ls -al *.
Brings up 'No such file or directory'
And the following ls -al .*
Brings up files AND directories
I need o discriminate between files and directories, finds all files without extensions, and rename them with the appropriate extension.
Can anyone help?
Best, TomThe following will find files without a file extension in the current working directory and any sub-directories->
find . -type f ! -name "*.*"
If you are confident that the files found are the appropriate audio file (in this case aif) then you could->
find . -type f ! -name "*.*" -exec mv {} {}.aif \; -
Edit PHP files without extension
Hi,
I'm currently developing a website with DW CS3 and I'm using
apache's mod_rewrite so I have clean URL's. The thing is that doing
this forces me to rename my php files e.g.
index.php to
index. Is there a way that DW recognizes these files as PHP
files, so I have nice highlighted code?
Greets,
NickHello,
Right clicking and selecting open is exactly the answer to
the question you
asked about how to open files without an extension.
There are many young people and people just learning here, so
all questions
are answered.
How was anyone supposed to know you meant something else, and
that you
already knew the answer was to right click and select open?
You didn't mention DW was giving you errors until after 2
people gave the
answer to the question you asked.
The fact that DW is giving you an error message when you try
to open the
file is something else entirely.
So, if that's your actual question, can you expand on "DW
keeps giving me
errors" and share what the error messages are, so we can try
and help you?
Take care,
Tim
"magoo" <[email protected]> wrote in message
news:gcr7s0$m9n$00$[email protected]..
> Murray *ACE* wrote:
>> Right click on the file and select Open.
>>
>>
>> "magoo" <[email protected]> wrote in
message
>> news:gcr39p$r7o$01$[email protected]..
>>> Alan wrote:
>>>>> is it possible to open files without
extension in DW?
>>>>
>>>> yes- but they will be treated as a plain
text file, they won't be
>>>> associated with any type of scripting type
so no code hints or code
>>>> coloring.
>>>
>>> That`s fine, so how does it work?
>
> Wow, what an ace you are. If it was that easy I would
not have bothered
> posting here ...
>
> --
> Regards
> magoo -
Quick Look for files without extensions.
I have many files without extensions that quick look does not recognize as text files. Bash shell scripts generally do not use an extension, for example (they are identified by their first line). Similarly I have a lot of text file notes w/o a ".txt" extensions.
Is there any way to have quick look recognize these as text files? They currently have either text edit or textmate as their default "open with" app. I presume there is a config file of some sort for quick look that will let me default files with no extension to text files, but have not found it yet.Can't Quick Look for some text files
Re: Is it possible to change the viewing format?
Quick Look for files without extensions.
Re: Can I view text files without a .txt extension in Quick Look?
How do I add support to Quick Look -
I find file without Extension after Download.
In Firefox, when I am trying to download STL file from Email then it allows me to download such file without extension. That means I can't get file with Extension. . Why such thing happen ?
Hi, Flash Player is a browser plug in, not a standalone player. It works thru your browser. Check in Safari and any other browser that you use for the Shockwave Flash plugin. Make sure it's Enabled.
You can test each browser here and should be able to see the Flash Player logo(Red F) animate(spin). It will also display the version of Flash Player that you have Installed.
http://www.adobe.com/software/flash/about/
eidnolb -
Files without extensions read as UNIX exe files
I have an iMac connecting to my MacBook Pro that has several external drives attached by firewire. On those external drives the iMac sees any file without an extension as exe files. In particular, font files are seen this way.
Can I add extension to the font files (most of them postscript type 2) so that the iMac sees them as fonts rather an exe files?
Or is there a way of solving the problem that has a more broad approach?
Thanks!!!First, ensure that Finder->Preferences->Advanced->Show all filename extensions is checked, then check those files. If the issue continues, then rebuild the LaunchServices database by running this one-line command in the Terminal.app (/Applications/Utilities/)—copy & paste it into the Terminal window and hit the return key:
*/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user*
Restart and see if that fixes the problem. -
Batch export .ai to .png produces files without extension - please help
I created an Action to batch export a folder of .ai files to create 300dpi .png's of the .ai file's artboard. I did this by simply recording "Export...as png" with my desired settings then Batch running the Action on desired folder of .ai files. The files were successfully exported, the trouble is that the exported files lack a .png file extension. My intent is to take these PNG files and
merge them into a single PDF using Acrobat Pro. Unfortunatly, without the .PNG extension, Acrobat Pro does not recognize the file types and does not let me use the Combine Files feature on them. Going back and manually adding a .png at the end of the exported files defeats the time-saving purpose of Batch Processing all together. Is there something I am missing or doing incorrectly? I have included screenshots of 1) My Batch Action settings 2) folders showing files without .png extension and 3) visual of what I see when I am trying to combine PNGs into a PDF. Assistance would be greatly appreciated!
- ErinYes, I am on a Mac running Snow Leopard 10.6.8 with CS5 (Illustrator 15.0.2, Acrobat Pro 9.4.6). Your suggestion did not help as "Hide Extension" is not checked. I even set "Open With" to Acrobat Pro and still get no extension or ability to import into Combine in Acrobat. Thanks anyhow. Please see below.
-
Files without extensions not recognizing program
Recently I used my new lacie firewire drive to transfer files from my G4 to a PC laptop. Now the files on the Lacie (when I work on the G4) are missing their icons. Only files without the extension .ai, .m4a etc. Some files will open via right click and choose the program. Some will not open at all.
In every folder there is now a finder.dat and resource.
I read in a recent post about the finder.dat and resource. And now understand the relationship to the PC. This has never happened on my older Lacie drive which I've used between computers.
Is there a repair program I can run on the Lacie?But for now is there a way to salvage the files that are
gray rectangles. So that they can recognize the program
from which they were created?
First, you do get credit for using some method of backing up. Thats more than many users do
If the files with generic icons were created on another Mac, and they will not open (or prompt you for a program to open), then you likely no longer have either an old copy of the program that created the file, or you do not have the OSX version of the program that created them, or both.
Given they are from a G3, I would suspect they are looking for a Classic based program, not an OSX based program.
First question: Is Classic installed on your new machine?
If not, you may want to install it. Presuming your G3 was up to OS 9.2.2, you should be able to simply copy the System Folder (Os9), as well as the Applications (OS9) folder from the G3 to the external to the G4.
Second question: Based on your folder structure, can you determine what program you originally used to create the file(s)?
If the answer to question 2 is yes, then try opening that program (or the latest version thereof) first, then using it's open... command to open the file that you cannot 2x click.
Once you successfully open the file in (whatever program), save the file. This should 'update' the file, change the icon, and make it 2x clickable from the finder.
If the files with generic icons were created on the PC, then you will need the Mac equivalent of the program, or a program you know can open the file. For these files, once again open the application, then use it's open... command to get to the file.
Keep in mind there may be some files you simply cannot open or run on the Mac. There are way too many to list, but some of the most common will be .MDB (MS Access),DLL,PIF,COM, EXE,CAB, & MSI. -
FCPX can't use files without extension?
I just spent hours renaming my old clips..... from "ClipXXX" to a date (handy tip.... AVT DV Info is a godsend if you don't know when you recorded footage!).
I didn't put ".dv" at the end of each one... I didn't think it mattered.
However, FCPX shows all clips without the extension as grey, and they can't be selected. This is odd, because iMovie, Quicktime etc. can see them, recognise them as .dv files and open them.
Have I got something set up wrongly?
If not, anyone know how to batch change 100's of files to add .dv so FCPX can see them??If you have Adobe Bridge (Any Photoshop since 7, or PS Elements would have installed it), you can easily add or change a suffix.
If you don't have Bridge, then I would recommend A Better Finder Rename. It has a number of options for modifying File/Folder names, include changing characters by position, renaming to a numbered or alphabetic list, adding suffixes, prefixes, scannig file name for specific characters and updating only this files with those characters... to many options to list. Very light weight, and runs as a finder extension so you can select the files, right-click(cntl-click) on the list and select ABFR from the pop-up.
I currently use v6.9.5. Current version is 8 and has a trial.
NOTE: I have no affiliation with the author, I just use the app regularely.
TA -
Hi Everyone,
In our company environment, each user has a home drive (resides on SAN share) and they place a copy of their files on their home drive instead of local machine so that their files can be backed-up on routine bases.
Now we have start encountering a problem, whenever a Mac user will copy a file (any files that does not have extension) on his home drive and then try to download back to his desktop then Mac machine will not recognize that file. This will only happen with those files does not have an extension. We are running Leopard and Tiger OS X on Macs
Does anyone know how can I fix this issue?
Thanks,The file extension is part of the file name, and it may be hidden by the Finder. The "Advanced" tab in the Finder preferences permits you to force the file extension part of the file name to be displayed. Otherwise the default is to hide the extension part of the file name unless you've explicitly asked Finder to display the extension for that particular file (select file, press command-I, and uncheck "Hide extension").
OS X still stores a "Creator Code" and file type for each file in the system metadata (as described in my previous post). You can see these using Terminal, and the command 'mdls'. OS X 10.6 uses this information differently than previous versions. OS X 10.6 maintains the creator code, but now ignores it in deciding which application to use to open a file.
The Finder (and the shell's "open" command) use the following criteria to decide what application to open a document with (stopping at the first one that fits):
1. Did the user specify the application using the Finder? If so, use that.
2. If the file has an extension in the name ('.' followed by a string that doesn't contain a '.'), and that extension is registered with LaunchServices, use the file type and default application registered with LaunchServices.
3. If the file meta-data contains a 4-letter file type (kMDItemFSTypeCode) and that's registered with LaunchServices, use the default application that's registered.
If the file type is selected by 2 or 3 and there are multiple applications that can work with those file types and the user hasn't specified a default, then check if the file has a creator code and use that as the default application (note that 10.6 no longer considers the creator code). If there's no creator match, give preference to OS X apps over Classic ones (10.6 no longer supports Classic apps). Give preference to apps on the boot volume over other volumes, and if there's two apps with different versions, give preference to the most recent.
That said, your problem is specific to files that have no extension (so they aren't subject to the assignment of file type by extension). If OS X can't determine what type of file they are without the extension, then the meta-data that contains the file type and creator have been lost (you're posting to the Leopard discussion group, so the creator code is still relevant). This indicates that the meta-data has been lost or stripped in the process of being transferred to the network drive as I had described above.
Note that you can programmatically restore the information, but the user can also manually assign the application used to open a file using the Finder.
Were it me, I'd probably work on trying to figure out why the metadata is being lost and correct that first. You can remediate the problem with some Perl scripting, the 'file' command (which is a UNIX utility that determine's a file's type information by looking at the content of the file), and the SetFile utility (to manually set the creator and file type metadata).
It should also be noted that if you've lost the file meta-data, you've lost the file resource fork -- if it had one. Using the resource fork for files is deprecated and hasn't been common since before the move to OS X, but it's still possible that you are using some older Classic apps that utilize that. If that's the case, you've lost that information. -
Ftp get file without extension
Hi
I'm trying to use the sample code from http://blog.dbandbi.com/tag/ssis-script-task-check-if-file-exists-c/
public void Main()
string userName = Dts.Variables["User::userName"].Value.ToString();
string password = Dts.Variables["User::password"].Value.ToString();
string fileName = Dts.Variables["User::fileName"].Value.ToString();
string ftpURL = String.Format("ftp://ftp.dbandbi.com/public_ftp/incoming/{0}",fileName);
try
FtpWebRequest ftpRequest = (FtpWebRequest)WebRequest.Create(ftpURL);
ftpRequest.Method = WebRequestMethods.Ftp.DownloadFile;
ftpRequest.Credentials = new NetworkCredential(userName, password);
using (FtpWebResponse ftpResponse = (FtpWebResponse)ftpRequest.GetResponse())
Dts.Variables["User::isFileExists"].Value = true;
catch
Dts.Variables["User::isFileExists"].Value = false;
Dts.TaskResult = (int)ScriptResults.Success;
but I'm having problems because the files are in unix format and they don't have extension. I tried using filename*.* and filename* but I always get "file does not exist". What I'm trying to do is to know if the file created by
another process has been freed so I can download it.
thanks in advance
cognosoftIf no extension then check for the exact name. It must not matter. When you connect to the site using non SSIS facilities, do you see the file there? Wildcards do not work AFAIK.
Basically, you need a directory listing to determine what files exist. You can run a remote dir command and save its output to a file or variable to skim thru.
Arthur My Blog -
Require output file name same as input file without extension
I am doing a POC where I require that my output file name should be same as input file name. The input is a XML and output is Flatfile. If I use %SourceFileName%,
i am getting the output with extension. How can I remove the extension? Do I need to write a custom pipeline component?I don't think Orchestration or custom Pipeline can help you on this as you are setting
%SourceFileName% Macros at your send Handler which comes after Pipeline Processing .
As you are converting xml file to Flat file I would suggest to use Macros as
%SourceFileName%.txt
%SourceFileName% Macro gives the file name along with extention. This won't work! -
Unable to Open Files without Extensions
Ever since updating to Mavericks and iWork 2013, I've noticed that Pages seems unable to open files that lack formal file extensions and the OS seems unable to accurately identify what type of file something is. For example, if I double-click on a Word document that doesn't have ".doc" or ".docx" in its filename (either shown or hidden), Pages will launch and then say the file "can't be opened." If I then change the filename to include ".doc" or ".docx" and try again, Pages will open the file successfully. It doesn't seem limited to iWork, though. Today I tried opening a PDF file that lacked a file extension. Pages launched and told me the file "can't be opened." I then added ".pdf" to the filename, double-clicked on it again, and the file successfuly opened in Preview. Any idea why the OS seems to be unable to tell what kind of files things are all of a sudden? Or why iWork and other apps seem unable to recognize and open files they used to be able to recognize and open? I don't have time to add file extensions to all my files! — Also, I thought this was a mature UNIX-based OS, not Windows 3.1...
Didn't realize I could edit my original post, so now this comment is superfluous...
-
IE downloads files without extension as html type
Hi,
i wrote a piece of code to down load files. its working fine for all the filetypes which will have extension.
but if the file doesn't have any extension, then download prompt shows
FileName : aaaaa
Type : Html Document
and when saves it saves as txt file. how to stop this and save it as unknown typeI know this isn't an answer to the question you're asking, but are you sure you want that behavior? There might be times where you want an extensionless file to be loaded as a plain text file. At the very least, it will help make your site more compatible.
If all these files are collected in the same area on your system, it might be best to give them the .html extension.
You can do this relatively painlessly with virtually any scripting language. I know I've even seen an AppleScript that will go through a batch and change the extension for you. You might want a modified one that will first check for the start/end HTML tags in the file first to make sure you're only changing HTML files. A quick Google search for scripting a filename change will probably yield lots of results (check Perl and PHP resource sites as well). -
Can't recognise files without extensions.
This is my first mac and I bought it for work. When I transfered some files over from the older the macs in the office I discovered that unless they have an extension they are read as exec files.
I've only noticed it for InDesign files (.indd) and tiff pictures so far...
Anyone have any suggestions?Personally, I would put all the InDesign files in a folder, do the same with other file types. Then go here:
"/Library/Scripts/Finder Scripts/Add to File Names.scpt"
Double click the script, it will open in Script Editor. Now open the folder with the InDesign documents, select all of them, and click the "Run" button in Script Editor. Tell it to add the text
.indd
and click the Suffix button. All the files should now have the proper extension. Do the same with the other files--just make sure you know the correct file type! The common Mac extensions are:
.jpg (for jpegs)
.pdf
.psd (for native Photoshop files)
.tif (for tiff files)
I suspect the problem is the result of the old files taking a trip through a Windows server. A Mac running OS X will correctly import old Classic Mac files, but it has to be done from a Mac formatted disk to a Mac formatted disk, which will preserve the resource fork.
Francine
Francine
Schwieder
Maybe you are looking for
-
We have Adobe CS6 installed at work and every couple of weeks Acrobat just crashes silently and then refuses to load, even when opened via short cut, windows context menu, etc. Repairing the install doesn't fix this issue and instead I have to comple
-
I want to use my apple ID but i dont have credit card, what should i do?
i want to use my apple ID but i dont have credit card, what should i do? my last telephone was I phone 5, now i have 6 and i have a problem using my apple id. there are a new things like credit card, pass and so on... i just want to install apps like
-
I need a display driver that supports win 8.1 for my hp mini
I RECENTLY UPGRADED MY HP MINI FROM WIN 7 TO WIN 8.1. SOME OF MY APPS WON'T DISPLAY OR OPEN AT ALL. I RECEIVE A MESSAGE OF.... MY RESOLUTION IS TOO LOW. WHEN I TRY TO CHANGE IT THERE ISNT A HIGHER OPTION AVAILABLE. WHAT CAN I DO?
-
Setting JTextArea text within a JScrollPane
Hey all. I'm attempting to use the setText() method of JTextArea to set the text of various areas located in various scroll panes. The general procedure I'm following is to initialize a new JTextArea and JScrollPane within an initializeGui function,
-
Hi expert, i am getting below error in goldengate due to mount point full and i released the space and still the same error for all gg processes. i can see the *cpe cpr file become 0 bytes. so i deleted and re added the extract and repliacat and