Script to save previously unsaved, newly created files?

I'm looking for a script that can save an open, previously unsaved, image as a TIFF file.
It's important that it's not needed to enter a new file name every single time the script is executed, I need the script to do that for me, at least once a file name is pre-defined in the script.
The script must also automatically "number" the files like file0001.tif, file0002.tif,, file0003.tif, etc., in order to not overwrite an already existing file.
Is there a script that fits my description?
Cheers!
Martin

Please try this, you will have to edit the script to meet your needs.
It will save ALL open documents an close them once saved.
#target photoshop
app.bringToFront();
main();
function main(){
if(!documents.length) return;
//amend to suit
var folderPath = Folder("/c/folderName");
if(!folderPath.exists) {
    alert("Output folder does not exist!");
    return;
//this should be the first part of the filename
//I.E. if file name = Picture0001.tif it needs to be Picture
//N.B. it must be the same case!
var fileName  = "filename";
var fileType = "tif";
while (documents.length) {
var fileList = new Array();
var newNumber=0;
var saveFile='';
fileList = folderPath.getFiles((fileName + "*." + fileType));
fileList.sort().reverse();
if(fileList.length == 0){
saveFile=File(folderPath + "/" + fileName + "0001." +fileType);
SaveTIFF(saveFile);
activeDocument.close(SaveOptions.DONOTSAVECHANGES);
}else{
newNumber  = Number(fileList[0].toString().replace(/\....$/,'').match(/\d+$/)) +1;
saveFile=File(folderPath + "/" + fileName + zeroPad(newNumber, 4) + "." +fileType);
SaveTIFF(saveFile);
activeDocument.close(SaveOptions.DONOTSAVECHANGES);
function zeroPad(n, s) {
   n = n.toString();
   while (n.length < s)  n = '0' + n;
   return n;
function SaveTIFF(saveFile){
tiffSaveOptions = new TiffSaveOptions();
tiffSaveOptions.embedColorProfile = true;
tiffSaveOptions.alphaChannels = true;
tiffSaveOptions.layers = true;
tiffSaveOptions.imageCompression = TIFFEncoding.TIFFLZW;
activeDocument.saveAs(saveFile, tiffSaveOptions, true, Extension.LOWERCASE);

Similar Messages

  • Unable to open newly created files using a specific font.

    Hello everyone!
    All of a sudden, I am not able to open newly created files in Acrobat Pro 9.0 that use a specific font. It seems to be localized to files that are created in Microsoft Words, as I tried to create a document in Pages and was able to open that PDF (using the same font) in Acrobat. I'm not sure what to do at this point...Any ideas?

    Hi,
    If you have recently upgraded to Mac OS X 10.6.7, then have a look here:http://forums.adobe.com/message/3593533#3593533, where Steve Werner had the solution.
    Niall

  • Weird ESB Error - "newly created file vanished" !

    I'm trying to register a really simple ESB project - 2x Db adapters that each call a stored procedure. I've done it dozens of times before without any problems but now I'm getting this weird error message in JDev when registering the services:-
    error code: 0 : 10
    summary: An unhandled exception has been thrown in the ESB system. The exception reported is: "java.io.IOException: Service TxXMLFileDescriptorsStore at C:\product\10.1.3.1\OracleAS_2\integration\esb/oraesb/artifacts/store/metadata working on C:\product\10.1.3.1\OracleAS_2\integration\esb/oraesb/artifacts/work/metadata access error : Newly created file vanished
         at oracle.tip.esb.server.bootstrap.ESBBaseResourceAdapter.createIOException(Unknown Source)
         at oracle.tip.esb.server.bootstrap.ESBBaseResourceAdapter.access$100(Unknown Source)
         at oracle.tip.esb.server.bootstrap.ESBBaseResourceAdapter$1.createDirectory(Unknown Source)
         at oracle.tip.esb.lifecycle.AuxiliaryFileHandler.copyToRepository(Unknown Source)
         at oracle.tip.esb.lifecycle.AuxiliaryFileHandler.copyToRepository(Unknown Source)
         at oracle.tip.esb.lifecycle.AuxiliaryFileHandler.copyToRepository(Unknown Source)
         at oracle.tip.esb.console.XMLConsoleManagerImpl.commit(Unknown Source)
         at oracle.tip.esb.configuration.deployment.JDevDeploymentManager.deploy(Unknown Source)
         at oracle.tip.esb.configuration.deployment.DeploymentServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: org.apache.slide.common.ServiceAccessException: Service TxXMLFileDescriptorsStore at C:\product\10.1.3.1\OracleAS_2\integration\esb/oraesb/artifacts/store/metadata working on C:\product\10.1.3.1\OracleAS_2\integration\esb/oraesb/artifacts/work/metadata access error : Newly created file vanished
         at org.apache.slide.store.txfile.AbstractTxFileStoreService.throwInternalError(AbstractTxFileStoreService.java:357)
         at org.apache.slide.store.txfile.TxXMLFileDescriptorsStore.createObject(TxXMLFileDescriptorsStore.java:134)
         at org.apache.slide.store.AbstractStore.createObject(AbstractStore.java:670)
         at org.apache.slide.store.ExtendedStore.createObject(ExtendedStore.java:602)
         at org.apache.slide.structure.StructureImpl.create(StructureImpl.java:354)
         at oracle.tip.esb.server.bootstrap.slide.CreateFolder.createFolder(Unknown Source)
         at oracle.tip.esb.server.bootstrap.slide.CreateFolder.executeRequest(Unknown Source)
         at oracle.tip.esb.server.bootstrap.slide.AbstractSlideMethod.execute(Unknown Source)
         at oracle.tip.esb.server.bootstrap.slide.SlideHandler.createFolder(Unknown Source)
         at oracle.tip.esb.server.bootstrap.slide.SlideHandler.createFolder(Unknown Source)
         ... 23 more
    Fix: - "
    I've restarted SOA Suite but it made no difference. Has anyone seen this before?
    (I'm running JDev 10.1.3.2 and SOA Suite 10.1.3.1 - I'm also using a default install of Oracle XE as the dehydration store - but this has been running fine for almost 2 weeks now).
    Message was edited by:
    gnewtonaus

    Hmmm have restarted SOA Suite - no go, so restarted the whole server it's running on - still no go. Have tried rebuilding the ESB project from scratch using JDev 10.1.3.3 - no go.
    On subsequent tries (registering the the ESB services from JDev) I'm getting a different error message now:-
    error code: 0 : 10
    summary: An unhandled exception has been thrown in the ESB system. The exception reported is: "javax.transaction.NotSupportedException
         at org.apache.slide.transaction.SlideTransactionManager.begin(SlideTransactionManager.java:129)
         at org.apache.slide.common.NamespaceAccessTokenImpl.begin(NamespaceAccessTokenImpl.java:391)
         at oracle.tip.esb.console.XMLConsoleManagerImpl.commit(Unknown Source)
         at oracle.tip.esb.configuration.deployment.JDevDeploymentManager.deploy(Unknown Source)
         at oracle.tip.esb.configuration.deployment.DeploymentServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Fix: -
    Equally as confusing! - have I broken my ESB and need to reinstall SOA Suite?

  • Mac to Mac file sharing - file permissions problem upon newly created files

    Hi all,
    At home I have two iMac's both running Snow Leopard.
    iMac A/Users/*1 is sharing his iMac A/Users/*1/Documents folder.
    The sharing & permissions - preferences of this folder and the files inside this folder are:
    '*1' : (the iMac A's main user account) : Read & Write
    'share' : (a Sharing Only account, set up from iMac A) : Read & Write
    everyone : : No Access
    iMac B/Users/*2 is able to read & write to this folder because he is connected with iMac A as 'share'.
    So far so good. iMac A/Users/*1 can read & write to his own Documents folder
    and so can iMac B/Users/*2 because he is connected to iMac A as 'share'.
    But: this only applies to the folders and files that are _already in_ the iMac A/Users/*1/Documents folder,
    because I once changed the sharing & permissions -permissions of iMac A/Users/*1/Documents as mentioned above and executed 'Apply to enclosed Items...'.
    So the problem is: when I create a new file or folder on iMac A/Users/*1 or on
    iMac B/Users/*2 and put it in iMac A/Users/*1/Documents, this new file or folder will only
    have the standard sharing & permissions - preferences of any newly created file or folder
    on the iMac X/Users/*Y it was created. The problem is those sharing & permissions - preferences
    will not let the other iMac X"/Users/*Y" Read & Write to this new file or folder but only let himself
    Read & Write. Following, the other iMac X"/Users/*Y" will only be able to Read the newly created
    file or folder, because the standard standard sharing & permissions - preferences on
    iMac A/Users/*1 as well as on iMac B/Users/*2 are the following:
    '*Y' : (the iMac X's main user account) : Read & Write
    staff : (Administrator accounts on iMac X) : Read only
    everyone : : Read only
    A pretty manual fix to this problem is walking to iMacX" and changing the
    sharing & permissions - preferences of the newly created file or folder so that iMacX"
    will also be able to Read & Write this newly created file or folder.
    Does anyone know a better fix for my problem? Basicly I want to have Read & Write
    sharing & permissions on the newly created file or folder for both iMac's,
    not only the for the file or folder creator's iMac. And this without having to change
    sharing & permissions - preferences of this newly created file or folder manually
    each time.
    Thanks in advance,
    Vincent Verheyen.

    Hi all,
    I have found a thread wich i think also handles about my problem.
    The standard sharing & permissions - preferences or privileges
    can be changed apparently, this seems to have got something to do
    with umask and changing this umask. The adress is the following:
    *http://www.macosxhints.com/article.php?story=20031211073631814*
    Other ways to change the above-mentioned umask may be
    applications like SharePoints, TinkerTool or BatChMod.
    All of them are also mentioned in the above-mentioned thread.
    I haven't executed the solution as mentioned in the above-mentioned
    thread yet, replies to the thread speak about insecurity and failures.
    Further more I haven't found any other solutions to my problem,
    so any help is still greatly appreciated.
    Thanks in advance,
    Vincent Verheyen.

  • Newly-created Files & Folders Permission Problem

    Hello. I have a Snow Leopard Server 10.6.8 with Snow Leopard and Lion clients.
    When all Macs were running Snow Leopard, any client could create new folders and files on the Snow Leopard Server, and all other Mac clients can access and modify them (Read and Write permission).
    I updated a few clients to Lion, and now when a Lion client created a new file or folder on the Snow Leopard Server, only that client has Read & Write permission. All other client now cannot modify the newly-created file/folder.
    My temporary fix is to change the folder or file permission on the server so everyone can have access.
    Does anyone know how to fix this? Is this the Lion client problem or the Snow Leopard Server problem?
    Thanks.
    Alex.

    Hello. I have a Snow Leopard Server 10.6.8 with Snow Leopard and Lion clients.
    When all Macs were running Snow Leopard, any client could create new folders and files on the Snow Leopard Server, and all other Mac clients can access and modify them (Read and Write permission).
    I updated a few clients to Lion, and now when a Lion client created a new file or folder on the Snow Leopard Server, only that client has Read & Write permission. All other client now cannot modify the newly-created file/folder.
    My temporary fix is to change the folder or file permission on the server so everyone can have access.
    Does anyone know how to fix this? Is this the Lion client problem or the Snow Leopard Server problem?
    Thanks.
    Alex.

  • Unable to save any newly created file on my N900

    Hello guys,
    Was just wondering if any one could help me with this. When I create any new file or download a file to save, I get this message: " can't save file as file is read only" Could anyone help me out with this.
    Thanks
    Solved!
    Go to Solution.

    ndeboy wrote:
    Matt, thanks....I got the following message when I tried using root and running the various commands:
    ~ Root
    BusyBox v1.10.2 (Debian 3:1.10.2.legal-losso30+0m5) built-in shell (ash)
    Enter 'help'for a list of built in commands.
    Nokia-N900-51-1:~# umount/dev/mmcblk0p1
    -sh: umount/dev/mmcblk0p1: not found
    upon entering of the rest commands, I got the samenot found message.
    thanks 
    it needs a space after umount... so
    umount /dev/mmcblk0p1

  • How can I add account privileges to a newly created file?

    I have multipe accounts on my Mac.  Two of them need to share certain files, but not with everyone else so I can't use the Shared folder.  When I create a new text file with AppleScript it has default ownership to the account that created it, but I need to give read & write privilages to it to the other account as well.  I can do this manually, but there are lots of files sometimes.  One trick I've found is to reset privilages from the next higher folder.  This saves time, but sometimes I forget.  Also when I do this it causes Time Machine to think all the files in that folder have been updated.  If the folder is large it may cause Time Machine to purge a old backup version.  What I'd like to do is find some AppleScript code I can use to add user "A" with read & write access to the permissions of a new file at the time my AppleScript creates that file.  Any ideas?

    Thanks for the reference.  It was interesting and provided me with a direction I hadn't thought of: User Groups and Terminal commands which led to DO SHELL SCRIPT.
    The approach in your reference wasn't practical for me because I already have about 10,000 folders in a 4-deep tree structure on a 2 TB hard disk.  The inheritance method whould have taken a lot of work.
    I did some more researching and experimentation and here's what I ended up with.
    First I created a User Group and assigned the two accounts that needed to share files to it.  By the way, I have two accounts so I can run time-consuming AppleScripts in one while doing work in the other.  This way I'm not disturbed by the AppleScripts and, since some of them use System Events, they aren't disturbed by me.  Anyway, I set up a User Group.  For some reason, the first group didn't work properly.  When I assigned it to a folder or file, one of the account names appeared next to the group icon in the Get Info window of Finder.  I tried everything I could think of to make it work and failed.  Then I created a second User Group and it worked fine, so I just deleted the first group.  I wonder what went wrong the first time?
    Next I used the Finder's Get Info window to apply the new Group privilages to all items in my very large shared data folder on that hard drive.  This took about an hour.
    Finally I created the following AppleScript code taking most of it from what I found on the Internet and fixing problems using other things found on the net.  I've built the following code into a number of AppleScripts that create folders containing 20-200 files.  I've run two of the scripts and created about 200 files in a few dozen folders and it seems to work fine.  Oh, one more thing: For some reason I couldn't assign group membership by name.  I kept getting an error message.  When I substitued the group number - 505, it worked fine.  Go figure!
    tell application "Finder"
    ... lots of finder code ...
    set these_items to every item in folder (target_folder & folder_name)
    tell me
                                            set this_POSIX to quoted form of POSIX path of ((target_folder & folder_name) as alias)
                                            do shell script "chown -R  " & "Programming:505 " & this_POSIX user name "Richard" password "xxx" with administrator privileges
                                            do shell script "chmod -R 770 " & this_POSIX user name "Richard" password "xxx" with administrator privileges
                                            repeat with this_item in these_items
                                                      set this_POSIX to quoted form of POSIX path of (this_item as alias)
                                                      do shell script "chown -R  " & "Programming:505 " & this_POSIX user name "Richard" password "xxx" with administrator privileges
                                                      do shell script "chmod -R 770 " & this_POSIX user name "Richard" password "xxx" with administrator privileges
                                            end repeat
                                  end tell
    ...more finder code
    end tell
    Note: The tell me was recommended by someone on the net.  There was a caution about do shell script failing inside a Tell application "Finder".  I didn't test this.
    I'm a happy camper now.  I don't think I'd have found my way without the reference you provided.

  • Need Script to save multiple FrameMaker 9.0 files as .mif

    I am using FrameMaker 9.0 on a PC.
    I have a number of UNIX scripts that work on .mif files.
    With the older versions of FrameMaker, I was able to run FrameMaker on Unix and use the batch capabilities to create a script that opened the book and saved each file as a .mif file.
    FrameMaker 9.0 is not supported on Unix, so I can't do that any more.
    I have found references to scripts that will do the conversion to mif on the PC, but they all talk about older versions of FrameMaker.
    What can I use to automatically convert all the files in a book to mif files?
    Thanks,
    Tim Walker

    There are several plug-ins to save .mif and back to .fm
    TOOLBOX for FrameMaker 9 (www.toolboxforme.com) 'FM <> MIF' allows you to generate a complete book in MIF format out of a FrameMaker book in binary format and vice versa: the book and all book components are saved in the respective format.
    TOOLBOX for FrameMaker 9 'Book Transfer (FM<>MIF)' allows you to move a book with all components and generate all .fm files to .mif and vice versa.
    Note: FrameMaker  9 and TOOLBOX save MIF 9 or MIF 7. There is no way to save MIF 8.
    - Georg

  • Newly created files do NOT appear in finder

    When I bounce files from Logic7 or Logic8 and then switch to the "Bounces" folder, in the finder window that I usually have open in the background, the file that I just bounced does not appear there. The only way to get it to appear is to manually browse to another folder and then back to the "Bounces" folder so that the finder refreshes that folder's contents.
    This was not a problem until I upgraded to 10.5.4 and Logic8. I was previously on 10.4.9 and Logic 7.2.
    Other apps seem to be able to save documents and files to a folder, and they immediately appear in the finder window. Seems like yet another instance where Logic and the OS are not playing nice with each other.
    Anyone else having this problem? Any other apps behaving this way with the OS?

    +1 here!

  • Newly created files are always locked

    I have a small but annoying problem with Indesign. (Several, actually, but the one on my mind at the moment is...)
    Whenever I create a new document, it's always locked. I can't save changes to it, add it to a book, or do many other routine things with it. It doesn't matter what I do; I can close out of everything completely but when I re-open Indesign, the file is still locked.
    What I can do, which provides me with an easy workaround, is do a Save As..., delete the original document, and work with the one I created with the Save As. (Documents created by Save As don't seem to have this problem, only documents created by New => Document). After I do that, everything works as expected. For this reason, this problem isn't the end of the world, though it was pretty scary the first time it happened. But it's still an annoyance that strikes me as an obvious bug, and if anyone's got a diagnosis and a means of keeping it from happening in the first place, I'd love to hear it.

    Here's a post from a regular forum contributor that will explain:
    Troubleshooting 101: Replace, or "trash" your InDesign preferences

  • Finding the exact path to a newly created file.

    Hello,
    In my program I create a new file using a BufferedWriter. This, as you most certainly know, creates the file in the current directory. I'd like to know how do I find out the exact path of the file I just created?
    Example: the program is being run from C:\Java. The program creates the file test.txt. How do I figure out that it's C:\Java\test.txt if I don't know for sure what directory the program is being run from?
    Thanks,
    -Kain

    Heh. I feel pretty dumb now. I had been looking at that exact method for about a week now but thinking it wouldn't be as easy as it sounds. After trying it it was pathetically easy. Guess I should always try things first before deeming it impossible by those means.

  • Java.io.File and output.write to newly created file

    I'm using output.write(""); in conjunction with java.io.File to create a file with field data from a form submit. The file gets created and includes anything I add between the quotes rather then searching for it's value. My question is what is the syntax for putting <%= request.getParameters("") %> in the output.write brackets. I've been unsuccessful thus far so it must be my syntax.
    This works:
    try {
    File outputFile = new File("/tmp/filename");
    outputFile.createNewFile();
    FileWriter output = new FileWriter(outputFile);
    output.write("text in the file");
    output.close();
    } catch (IOException e) {
    System.out.println("Caught IOException: " + e.getMessage());
    // or.....
    System.err.println("Caught IOException: " + e.getMessage());
    %>
    I need to include the below and have the file represent <HTML> for redisplay.
    <html>
    <title><%= request.getParameter("car") %>, <%= request.getParameter("color") %></title>
    <font color=blue>Car Model: </font> <%= request.getParameter("carMod") %><br><br>
    <font color=blue>Car Color: </font> <%= request.getParameter("carColor") %><br><br>
    Can I wrap this somehow or do I need to define the field data another way?
    tks

    1)Do you want "<%= request.getParameter("car") %>" written exactly as that to the file, or 2)do you want to get the value of request.getParameter("car") and write it to the output?
    If 1):
    output.write("<title><%= request.getParameter(\"car\") %>,"+
            " <%= request.getParameter(\"color\") %></title>");else if 2):
    output.write("<title>"+ request.getParameter("car") +", "+
            request.getParameter("color")+"</title>");

  • How do you move the pages arround of a newly created combined file ?

    How do you move the pages around of a newly created File ?

    Hi coypaschal,
    To rearrange pages in a PDF file, you need Acrobat Pro or Standard. With either of those applications, it's as simple as dragging page thumbnails into their new position. For more information, see Adobe Acrobat X Pro * Rearranging pages in a PDF
    Please let us know if you have additional questions.
    Best,
    Sara

  • Screen saver can't recognize .jpg files in photo folder

    I just upgraded my iMac G4 (power PC) from OS X 10.1.3 to OS X 10.4.8 and am having a serious problem with my screensaver (I guess serious is a bit blown out of proportion since for me it is a fancy feature to show off family photos). I know where to look to find my own picture files. And thankfully I don't have the problem of not getting the option to choose my own file like I noticed others have had. But when I go to my pictures file in my home, the screen saver just doesn't recognize picture file formats (I've tried .jpg and .pdf). The files are there in the list, they are just listed in grey and not selectable. Thus the screensaver is black and says in white writing that there are no pictures in my file. I'm stumped. Any help would be appreciated. Thanks!
    iMac G4   Mac OS X (10.4.8)   recently updated from 10.1.3

    I know you don't select individual photo files for the screen saver, but when I pick a folder (that contains photos recognizable by preview or iphoto) that is in my "photos" file in my home, the screen saver does not recognize that there are any photo files in it. And by the way, downloading new .jpg files from my camera in my new OS X 10.4.8 did not solve the problem. The strange thing is that the "desktop" program can see the files (both old photos that were created in OS X 10.1.3 and my newly created files). Weird and annoying!

  • Create File Permissions

    So I was able to force globally all newly generated / created directories or folders to be set with 700 permissions by editing /etc/profile and changing the UMASK to '077'. That worked great for my Arch Linux workstation but I am now trying to understand how I can force all newly created files I create to have the same permissions. Is there a separate area I would need to set this up globally? I use 'wget' and 'touch' a lot and would like the files generated  by those commands and or 'vim' to have 700 permissions. Does anyone know how I can accomplish this on my system?

    umask 077 results in permissions of -rw------- for files and drwx------ for directories.
    was that not what you wanted?
    (nb: for obvious security reasons, umask won't make files executable by default)

Maybe you are looking for

  • Removal of the the Browse button at the lower right corner.

    Just would like to send out a request for apple to update the new iTunes 8.0 by re-adding the "Browse" button at the lower right hand corner, along side of the new genius button. I found the feature in the drop down view section on the top bar, but I

  • Warning messages while booting

    Hi, All! While booting Cisco I see three warning messages. What have to do to resole it? =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2012.04.11 20:38:38 =~=~=~=~=~=~=~=~=~=~=~= c3925#reload Proceed with reload? [confirm] Apr 11 14:42:46: %SYS-5-RELOAD: Reload

  • 2008 24" iMac crashing both SnowLeopard and Mavericks

    My iMac crashes about 1-3 times a day, usually while scrolling (either via scroll wheel or using mouse), or switching tasks.  Sometimes the screen goes blank (either solid grey or white, or horizontal grey or white stripes, or all black), or the scre

  • Problems in Macbook

    Good night Has appeared these points in the dashboard and the launchpad my Macbook and these in Chrome and when I see a picture someone has the same problem? Someone with the same problem? Thank You

  • HP LaserJet 100 colorMFP M175nw scanned images are too bright

    Hello! Is there a way to change scanner's default image color correction as currently all of resulted scanned images (text documents, graphics, photos) are unnaturally too bright? I had another HP Ink Jet printer also with scanner and all scanned ima