Automatic File Extension in BrowseForSave
Is there a way to set the extension of a file using
flash.FileSystems, browseForSave function?
The browseForOpen function takes a FileFilter. However when
using browseForSave you can not set a fileFilter and the file
extension has to be typed in manually. The File.extension property
associated with the selected file is read-only. Does anyone know of
a work around or anything that I could do to not enter the file
Extension manually.
For others if they would like to see:
set audEXT to {"mp4", "m4a", "mp3", "aif", "aiff", "wav", "m4r"}
property FoldersToMake : {"AUDIO", "VIDEOS", "Python workspace", "Documents", "PHOTOS", "Quartz Compositions", "Other"}
tell application "Finder"
repeat with newFolder in FoldersToMake
try
make new folder of folder "CleanUP" with properties {name:"" & newFolder & ""}
end try
end repeat
end tell
move (every file of desktop whose name extension is in audEXT) to the folder "AUDIO" of folder "Stuff"
Similar Messages
-
JFile Chooser - Add automatic file extension while Saving
Hello,
I have a JFileChooser, which I use for saving output from my program.
Problem is whenever I save a new file I have to manually specify its extension, otherwise I get an undefined file with no extensions.
I want my default extension to be ".txt".
Any ideas on what method to use? Is this a trivial issue or a complicated one?
Thank you,
BerkanWhat about this? Not tested.
import java.awt.Component;
import java.io.File;
import javax.swing.JFileChooser;
public class FilenameGetter {
private JFileChooser chooser = new JFileChooser();
public File getFileToSaveTxt(Component parent) {
if (JFileChooser.APPROVE_OPTION == chooser.showSaveDialog(parent)) {
File chosenFile = chooser.getSelectedFile();
if (chosenFile.getName().endsWith(".txt")) {
return chosenFile;
} else {
return new File(chosenFile.getParentFile(), chosenFile
.getName()
+ ".txt");
} else {
return null;
}Piet -
I recently submitted some job applications that had word and PDF attachments. However, when I saved the files I unwittingly had the 'hide extension' box selected. Will these files still open automatically in the correct application on a PC? (ie are the file extensions just 'hidden' at my end or are they completely removed by selecting this option so as to cause problems when opening them on a PC?)
Thanks in advance.Thanks, so having the 'hide extension' box checked when saving a new file for the first time won't save the file without an extension? (because I understand that Mac OS doesn't rely on the file extension but has other ways of knowing what the file is and what to open it with)
The reason I'm paranoid now is because one of the fields where I was uploading a file had a message to Mac users saying something like 'Mac users, be sure to save your file with an extension'. Surely this just happnes by default?? -
Quicktime automatically adding file extension?!
I use Quicktime for all my video playback - so i'm assuming my problem lies with this?
I do VJing and when I'm downloading video clips (non-mpg4) i.e. avi, flv etc - the downloaded files are adding a '.mpg' extension onto the file - so that it wont playback automatically in quicktime. For example a file downloaded called '1234.avi' ends up in my download/desktop folder as '1234.avi.mpg'?
The problem means I have to manually alter each file name deleting the .mpg file extension (and confirming each time that I want to change it) - so it will load in quicktime. I'm assuming it may be because I have ticked the box on 'always open this file type with quicktime' - which is what I want, but how do I stop it adding the file extension each time?Thanks for your help. I wasn't aware you could disable that alert in the finder? I'll have to look at doing that.
Whilst I take your comments on board - are you suggesting that Safari (web browser being used) - is adding the file extension on download? -
Photoshop will no longer automatically change file extension when I do a "save as".
I have just now been to Preferences to make desired settings for needed grid lines. Now Photoshop 9 will no longer automatically change the file extension when I do a "save as". Does anyone have any ideas or suggestions about this? I am using a Mac. Thank you.
Are you still facing the issue, can you try deleting preferces and then try it.
If still get no succes please lemme know the scenario you are using for saving file.
Cheers,
Sam -
Save as just started automatically appending file extension -- how to stop
When I do file->save_as the file name is automatically appended with the file type (ie: .jpg or .tiff). This just started and I do not know why. I do not want this as I am doing a save_as instead of save so I can append some tag info to the name of the file: file name: foo and I want to save as foo1. Having to delete the .jpg is annoying and will lead to errors. Why did this start and how do I go back to the old way it worked? I updated nothing when this started.
thanks RyThanks Benjamin,
Part of your description is correct. Old way of working:
do save as: get filename without any extension
If I change the file type (as you mentioned) then the file extension is added.
So if I saved a jpg file and then I am working on a raw file and want to save it as a tiff I would do a save as. save as wants to save the file in the format previously saved in. So when making the change I first change the file name (which is easier without the extension present and then I change the file type, which then adds the new extension.
having the extension added coming in is what has changed and is really annoying.
I would like to thank all for the answers so far, hopefully there is a way to get back to the original behaviour, which by the way has been working that way for years.
thanks ry -
Automatically open file based on MIME type and file extension
We have an app that is registered to handle custom MIME type and file extension. This works perfectly on IE and FireFox causing them to download the file to a temp folder and then launch our app associated with MIME type and file extension with command line to the downloaded file. On Safari however this does not work. It opens up a download window and shows that it has downloaded the file with no option to open it.
hello, you can file a bug on bugzilla.mozilla.org if you want to include your plugin in the plugin finder service...
[https://wiki.mozilla.org/PFS] -
Photoshop cs5 is not appending file extensions
in previous versions, photoshop appended to the file extension in the fiel save/save as dialog box. it no longer does this and when you save a file it does not append the file extension to the file name, resulting in unknown fiel type.
i am running windows 7 64-bit with photoshp cs5.
it does not make any since to have the option of appending the file extension if the program is not going to do it.
system info from photosho:
Adobe Photoshop Version: 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch]) x64
Operating System: Windows 7 64-bit
Version: 6.1 Service Pack 1
System architecture: Intel CPU Family:6, Model:10, Stepping:7 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2
Physical processor count: 8
Processor speed: 2195 MHz
Built-in memory: 16361 MB
Free memory: 11097 MB
Memory available to Photoshop: 14709 MB
Memory used by Photoshop: 74 %
Image tile size: 1024K
Image cache levels: 6
OpenGL Drawing: Enabled.
OpenGL Drawing Mode: Normal
OpenGL Allow Normal Mode: True.
OpenGL Allow Advanced Mode: False.
OpenGL Crash File: Not Detected.
OpenGL Allow Old GPUs: Not Detected.
Video Card Vendor: NVIDIA Corporation
Video Card Renderer: GeForce GTX 560M/PCI/SSE2
Display: 2
Display Bounds:= top: 0, left: 1600, bottom: 1200, right: 3200
Display: 1
Display Bounds:= top: 0, left: 0, bottom: 900, right: 1600
Video Card Number: 1
Video Card: NVIDIA GeForce GTX 560M
Driver Version: 8.17.12.6837
Driver Date: 20110427000000.000000-000
Video Card Driver: nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvd3dum,nvwgf2um,nvwgf2um
Video Mode: 1600 x 900 x 4294967296 colors
Video Card Caption: NVIDIA GeForce GTX 560M
Video Card Memory: -2047 MB
Serial number: 91198138241777799091
Application folder: C:\Program Files\Adobe\Adobe Photoshop CS5 (64 Bit)\
Temporary file path: C:\Users\Owner\AppData\Local\Temp\
Photoshop scratch has async I/O enabled
Scratch volume(s):
J:\, 440.8G, 301.0G free
H:\, 931.5G, 745.1G free
E:\, 232.9G, 59.9G free
D:\, 232.9G, 129.3G free
C:\, 440.8G, 301.0G free
Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS5 (64 Bit)\Plug-ins\
Additional Plug-ins folder: not set
Installed components:
A3DLIBS.dll A3DLIB Dynamic Link Library 9.2.0.112
ACE.dll ACE 2010/10/04-23:36:11 64.441628 64.441628
adbeape.dll Adobe APE 2010/02/23-12:40:58 61.421986 61.421986
AdobeLinguistic.dll Adobe Linguisitc Library 5.0.0
AdobeOwl.dll Adobe Owl 2010/06/03-13:43:23 3.0.93 61.433187
AdobeOwlCanvas.dll Adobe Owl Canvas 3.0.68 61.2954
AdobePDFL.dll PDFL 2010/12/13-23:37:10 64.341419 64.341419
AdobePIP.dll Adobe Product Improvement Program 5.0.0.2021
AdobeXMP.dll Adobe XMP Core 5.0 61.134777
AdobeXMPFiles.dll Adobe XMP Files 5.0 61.134777
AdobeXMPScript.dll Adobe XMP Script 5.0 61.134777
adobe_caps.dll Adobe CAPS 3,0,116,0
adobe_OOBE_Launcher.dll Adobe OOBE Launcher 1.0.0.64 (BuildVersion: 1.0; BuildDate: Mon Jan 26 2010 21:49:00) 1.000000
AFlame.dll AFlame 2010/02/23-17:27:33 61.421976 61.421976
AFlamingo.dll AFlamingo 2010/02/23-17:27:33 61.421978 61.421978
AGM.dll AGM 2010/10/04-23:36:11 64.441628 64.441628
ahclient.dll AdobeHelp Dynamic Link Library 1,5,0,30
aif_core.dll AIF 2.0 53.422628
aif_ogl.dll AIF 2.0 53.422628
amtlib.dll AMTLib (64 Bit) 3.0.0.64 (BuildVersion: 3.0; BuildDate: Mon Jan 26 2010 21:49:00) 1.000000
amtservices.dll AMTServices (64 Bit) 3.0.0.64 (BuildVersion: 3.0; BuildDate: Mon Jan 26 2010 21:49:00) 1.000000
ARE.dll ARE 2010/10/04-23:36:11 64.441628 64.441628
asneu.dll AsnEndUser Dynamic Link Library 1, 7, 0, 1
AXE8SharedExpat.dll AXE8SharedExpat 2010/02/23-17:27:33 61.421978 61.421978
AXEDOMCore.dll AXEDOMCore 2010/02/23-17:27:33 61.421978 61.421978
Bib.dll BIB 2010/10/04-23:36:11 64.441628 64.441628
BIBUtils.dll BIBUtils 2010/10/04-23:36:11 64.441628 64.441628
boost_threads.dll DVA Product 5.0.0
cg.dll NVIDIA Cg Runtime 2.0.0015
cgGL.dll NVIDIA Cg Runtime 2.0.0015
CoolType.dll CoolType 2010/10/04-23:36:11 64.441628 64.441628
data_flow.dll AIF 2.0 53.422628
dvaadameve.dll DVA Product 5.0.0
dvacore.dll DVA Product 5.0.0
dvaui.dll DVA Product 5.0.0
ExtendScript.dll ExtendScript 2010/10/19-10:22:12 61.445301 61.445301
FileInfo.dll Adobe XMP FileInfo 5.0 61.134777
icucnv36.dll International Components for Unicode 2009/06/17-13:21:03 Build gtlib_main.9896
icudt36.dll International Components for Unicode 2009/06/17-13:21:03 Build gtlib_main.9896
image_flow.dll AIF 2.0 53.422628
image_runtime.dll AIF 2.0 53.422628
JP2KLib.dll JP2KLib 2010/12/13-23:37:10 64.181312 64.181312
libifcoremd.dll Intel(r) Visual Fortran Compiler 10.0 (Update A)
libmmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 10.0
LogSession.dll LogSession 2, 0, 1, 11
MPS.dll MPS 2010/12/13-23:37:10 64.450375 64.450375
msvcm80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcm90.dll Microsoft® Visual Studio® 2008 9.00.30729.6161
msvcp80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcp90.dll Microsoft® Visual Studio® 2008 9.00.30729.6161
msvcr80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcr90.dll Microsoft® Visual Studio® 2008 9.00.30729.6161
pdfsettings.dll Adobe PDFSettings 1.04
Photoshop.dll Adobe Photoshop CS5 CS5
Plugin.dll Adobe Photoshop CS5 CS5
PlugPlug.dll Adobe(R) CSXS PlugPlug Standard Dll (64 bit) 2.0.0.746
PSArt.dll Adobe Photoshop CS5 CS5
PSViews.dll Adobe Photoshop CS5 CS5
SCCore.dll ScCore 2010/10/19-10:22:12 61.445301 61.445301
tbb.dll Threading Building Blocks 2, 1, 2009, 0201
TfFontMgr.dll FontMgr 9.3.0.113
TfKernel.dll Kernel 9.3.0.113
TFKGEOM.dll Kernel Geom 9.3.0.113
TFUGEOM.dll Adobe, UGeom© 9.3.0.113
updaternotifications.dll Adobe Updater Notifications Library 1.0.0.68 (BuildVersion: 1.0; BuildDate: BUILDDATETIME) 1.0.0.68
WRServices.dll WRServices Thursday January 21 2010 12:13:3 Build 0.11423 0.11423
wu3d.dll U3D Writer 9.3.0.113
Installed plug-ins:
Accented Edges 12.0
ADM 3.11x01
Alien Skin Autolayer 4 4.0.0
Alien Skin Blow Up 3 3.0.0
Angled Strokes 12.0
Average 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Bas Relief 12.0
Blow Up 3.0.0
BMP 12.0.2
Camera Raw 6.6
Chalk & Charcoal 12.0
Charcoal 12.0
Chrome 12.0
Cineon 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Clouds 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Color Halftone 12.0.2
Colored Pencil 12.0
CompuServe GIF 12.0.2
Conté Crayon 12.0
Craquelure 12.0
Crop and Straighten Photos 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Crop and Straighten Photos Filter 12.0.2
Crosshatch 12.0
Crystallize 12.0.2
Cutout 12.0
Dark Strokes 12.0
De-Interlace 12.0.2
Difference Clouds 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Diffuse Glow 12.0
Displace 12.0.2
Dry Brush 12.0
Eazel Acquire 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Embed Watermark 4.0
Extrude 12.0.2
FastCore Routines 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Fibers 12.0.2
Film Grain 12.0
Filter Gallery 12.0
Fresco 12.0
Glass 12.0
Glowing Edges 12.0
Grain 12.0
Graphic Pen 12.0
Halftone Pattern 12.0
HDRMergeUI 12.0
IFF Format 12.0.2
Ink Outlines 12.0
JPEG 2000 2.0
Lens Blur 12.0
Lens Correction 12.0.2
Lens Flare 12.0.2
Lighting Effects 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Liquify 12.0.1
Matlab Operation 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Measurement Core 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Mezzotint 12.0.2
MMXCore Routines 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Mosaic Tiles 12.0
Multiprocessor Support 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Neon Glow 12.0
Note Paper 12.0
NTSC Colors 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Ocean Ripple 12.0
OpenEXR 12.0.2
Paint Daubs 12.0
Palette Knife 12.0
Patchwork 12.0
Paths to Illustrator 12.0.2
PCX 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Photocopy 12.0
Picture Package Filter 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Pinch 12.0.2
Pixar 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Plaster 12.0
Plastic Wrap 12.0
PNG 12.0.2
Pointillize 12.0.2
Polar Coordinates 12.0.2
Portable Bit Map 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Poster Edges 12.0
Radial Blur 12.0.2
Radiance 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Read Watermark 4.0
Reticulation 12.0
Ripple 12.0.2
Rough Pastels 12.0
Save for Web & Devices 12.0
ScriptingSupport 12.0.4
Shear 12.0.2
Smart Blur 12.0.2
Smudge Stick 12.0
Snap Art 3 3.0.0
Solarize 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Spatter 12.0
Spherize 12.0.2
Sponge 12.0
Sprayed Strokes 12.0
Stained Glass 12.0
Stamp 12.0
Sumi-e 12.0
Targa 12.0.2
Texturizer 12.0
Tiles 12.0.2
Torn Edges 12.0
Twirl 12.0.2
Underpainting 12.0
Vanishing Point 12.0
Variations 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Water Paper 12.0
Watercolor 12.0
Wave 12.0.2
WIA Support 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
Wind 12.0.2
Wireless Bitmap 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
ZigZag 12.0.2
Plug-ins that failed to load: NONE
Flash:
Yale
Gallery Wrapper
Edge FX CS5
Analog Photo FX
Mini Bridge
Kuler
Access CS Live
CS Review
CS News and Resources
Installed TWAIN devices: NONEkrwebb wrote:
The operating system has no problems with the filenames ... it is Photoshop that is not handling the names correctly.
Just tried this out on my Windows 7 64 bit system, and I get the same results using Photoshop.
When I save a file in Photoshop CS5 64 bit with the name 047. Crayon - Abstract the file is saved as 047. Crayon - Abstract without a file extension, no matter what document type I select in the drop-down.
In Word I get the expected result:
When I save a file in Word with the name 047. Crayon - Abstract the extension is automatically added (047. Crayon - Abstract.docx) -
File extensions not working as expected, is this normal?
In the finder, there is an option to "Show all file extensions".
So normally, a certain image file could be either "image" or "image.jpeg".
However, I have some weird files: "image.jpeg.jpeg" EVEN WHEN I HAVE SET THE EXTENSIONS TO BE HIDDEN. What I want is to remove these extensions, because they should have been hidden.
I rename it to "image", removing the ".jpeg.jpeg" and it automatically adds another ".jpeg" at the end. Finder just does that, no prompt.
Then, I remove that extension it just added, so it becomes "image". Again, no prompt, because this is the way the file should be. Finder does not tell me "Are you sure you want to rename it to .jpeg"
Now, this file is normal: its extension can be hidden or shown by the finder, rather than being unaffected. Why does Finder do this?
Is there a way to batch-remove duplicate extensions so that the extension is affected by the Finder's "Show extensions" option?Does this anomaly occur with only a few files or all files?
Try creating a new user account and seeing if this happens when using that account as well.
Have you recently repaired permission?
If you are familiar with the terminal, you can use the command
ls -al@
in the directory in which this file resides and post its attributes here. -
Adobe Bridge CC Batch Rename and File Extensions
I use Adobe Bridge CC on my macbook pro that is running OS X 10.8.5 When I batch rename files within Bridge it automatically drops the file extension. I am able to add the extension within the naming process but would prefer if it simply defaulted to the existing extension of the files being renamed. On occasion it does do this and then the next time it is gone. What am I doing wrong?
I don't think there is any way in which you can add to the built-in functions…
Unless this is actually provided by one of the Adobe start-up scripts… ( I've not see it when digging about )
You would probably need a scripted solution that can give you drop down menu of the extra options you want. -
I'm trying to transfer files from an old G3 (OS 9.2) to a new G5 (OS 10.5.8). Most files do not show the extension in their name. For example, an Illustrator eps has the file name "layout_final". When I transfer it to the new machine, it recognizes it as an .EXE file and cannot open. If I type in the .eps file extension, where is now reads "layout_final.eps", it then opens in Illustrator. I don't want to have to resort to manually adding in the file extension to every file. Is there a way in OS 9.2 to automatically show/turn on the extension in the file name?
Thanks for the help!
SteveHow are you transferring the files ?
It sounds like you're going through some sort of Windows / DOS formatted media.
If you can network the two Macs together instead, do so.
If you can burn a CD or two on the Mac G3, do so.
If you have to use a USB stick, format it to Mac HFS Extended (aka HFS+) on either and use that.
The key is that if you transfer the files using something formatted for Mac, the file metadata should not be lost, and the files will appear on the G5 as expected, assuming that you have suitable apps to open the files in OSX 10.5 -
Removing file extension using REGEX
// User didn't add the XLS extension; add it automatically
if (file.getName ().lastIndexOf (".") > 0)
fileName = file.getName ().toLowerCase ().replaceAll (".*$", ".xls");
System.out.println ("*** ALREADY HAS AN EXTENSION ***");
System.out.println ("Renamed to " + fileName);
...What I'm trying to do is remove a file extension from a string and add my own. For example, in my application, I'm checking to see if there is a period in the file.getName() string. If there is, I want to replace anything from the period on with nothing, but I don't think my regular expression is right.
If I type in "file.txt", I get:
*** ALREADY HAS AN EXTENSION ***
Renamed to .xls.xls
Basically, my regular expression is incorrect, but I don't see what I'm missing.private void saveFile ()
useFileFilter (".xls", "Excel Files (*.xls)");
String fileName;
int returnVal = fc.showSaveDialog (this);
if (returnVal == JFileChooser.APPROVE_OPTION)
File file = fc.getSelectedFile ();
if (file.getName ().endsWith (CustomFilter.getExtension()))
// User kept the XLS extension
fileName = file.getName ();
System.out.println ("Saving " + fileName);
else
// User added their own extension; change it
if (file.getName ().lastIndexOf (".") != -1)
fileName = file.getName ().replaceAll ("\\..+", "") + CustomFilter.getExtension();
System.out.println ("*** ALREADY HAS AN EXTENSION ***");
System.out.println ("Renamed to " + fileName);
// User didn't add an extension; add it
else
fileName = file.getName () + CustomFilter.getExtension();
System.out.println ("*** Saving " + fileName);
else
System.out.println ("User cancelled the dialog.");
}I found that your regex works best in this case.fileName = file.getName ().replaceAll ("\\..+", "") + CustomFilter.getExtension();If I try to save a file as tEsT.tar.gz, my output is:
*** ALREADY HAS AN EXTENSION ***
Renamed to tEsT.xls.
If I used the other user's example:fileName = file.getName ().replaceAll ("\\.[^.]*$", "") + CustomFilter.getExtension();it wouldn't be correct. If I entered a filename such as tEsT.tar.gz, my output would be:
*** ALREADY HAS AN EXTENSION ***
Renamed to tEsT.tar.xls -
Labview automatically saves a text file as a readable text file but it has no .txt or .text file extension on. Is there a way in which you can make labview save a file automatically with a .txt file extension so it can be opened directly by notepad. Rather than having to choose aprogram to open it with every time I try to access one of the files.
Thanks,
Matt.
Solved!
Go to Solution.gilgad2000,
It depends on your VI. If you are using the "Path Control" tool, you can open its "Browse Options" and write .txt at the Pattern box.
If you are not using it, you can also concatenate a ".txt" string at the end of the file path (use "Strip Path", "Concatenate Strings" and "Build Path" functions) just before using it on the saving function.
Message Edited by Danigno on 07-17-2009 03:18 AM
Attachments:
Snap1.png 3 KB -
StarOffice 8 CDE Icon and Document File Extension Associations
I recently upgraded to Solaris 10 (5/08). With previous versions of Solaris, I installed StarOffice 7 from CD and it placed the nice little icon in the CDE desktop panel and it created StarOffice associations to all the typical office file extensions (ie. .doc, .xls, etc.). I would like to use the StarOffice 8 that is bundled with Solaris 10. Is there an installation step or some other way to automatically setup the CDE icon and the file extension associations?
Thanks,
Joe
Edited by: jdulisse on Sep 19, 2008 11:45 AMI came across the same problem on windows XP SP2 machines.
I created a registry key that forces the file associations as follows:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.doc\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.doc\shell\open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.doc\shell\open\command ]
@="\"C:\\Program Files\\Sun\\StarOffice 8\\program\\soffice.exe\" \"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.xls\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.xls\shell\open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.xls\shell\open\command ]
@="\"C:\\Program Files\\Sun\\StarOffice 8\\program\\soffice.exe\" \"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.ppt\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.ppt\shell\open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.ppt\shell\open\command ]
@="\"C:\\Program Files\\Sun\\StarOffice 8\\program\\soffice.exe\" \"%1\"" -
File extension default no longer enabled while saving
Similar to Gregg Riley's StarOffice experience, I recently noticed that default saves for various (but not all) StarOffice "pulldown file type" selections no longer save with the correct-default extension.
I now (sometimes) have to type in the correct extension, re-check the "automatic file name extension," or re-name the file (adding the extension) after the file was saved.
I am fairly certain that this behavior has only recently begun, and wonder what could cause this new behavior. Could this be a StarOffice bug or macro-virus, or a Windows XP/Vista bug or virus?
Could opening a corrupt StarOffice file cause this issue? Could a corrupt file "reset" the defaults and cause trouble saving and re-opening similar file types?
I am searching the posts for support tips, but have not yet found a "known problem."
Sure, I could have "unchecked" this feature during save, but I have no reason to "uncheck," so that's why I am wondering if this is a known problem/phenomena.December 03 2009
I am using Star Office Ver 9.10 Build 9399 on a Windows Vista operation system.Current SO9 is 9.1.1. When you are using VISTA, you must have your permissions set correctly.
If I use a file name on a ODT file ending in numeral "6", the file type becomes "type 6" and then the file won't open except using a text editor. I can't get the "Open with" options to even list the Star office apps, and it keeps offering Adobe PDF to open with or my Chrome Browser, and Word Pad.This sounds like operating system corruption.
I guess my next step will be to uninstall and reinstall the software off the latest web download, but for now I am working around this as I am on a big project and cant take time to screw around trying to redo things at this moment.If your problem is operating system corruption, it may be risky not to get to the root of the problem.
Phil
Maybe you are looking for
-
APP - Clubbing of Items for Payment
Hi, I am using APP for making Payment to the vendors. For APP, I have set the rule for the Minimum Payment Amount of INR 7500 for Payment Method u201CCu201D in FBZP. The u201CSingle Payment for marked itemu201D is not ticked. Now I have one vendor wh
-
Apply text styles to multiple objects
Hey everyone, So here's another interface issue I can't seem to resolve. I've figured out how to save a text's style to be applied later (thanks Qbert), but now how do I apply that style to multiple text items without having to go to each individual
-
Aperture 3 image import question
I'm trying out a trial version of Aperture 3, and have a (hopefully) quick question about importing images. I keep my images on a network storage drive. When I imported them into Aperture, the program seemed to copy the files from the NAS to the Ape
-
Search help(f4) for function module input
can we create a serch help for function module input giving process
-
How to rotate screen in airplay from iphone 5
I have an iPhone 5 and want to use airplay to my Apple TV. I figured out how to stream, but when I use the ABC TV app to stream to Apple TV the picture is in the vertical position showing the show sideways. There is no airplay button when streaming