Adobe Air Mac Change File Permissions

Hi there
I have a Adobe Air app for MAC that downloads a zip file then decompresses it uzing the fzip library... After decompression i try executing a .app file with NativeProcess API... But after the decompression the file loses permission to execute enven if i try to manually execute the .app it doesn't open... But if I change the .app permissions with command line the .app opens even with the NativeProcess API.
So I would need to change the file permissions through Air API... or run a command-line to change ther permission through Air API.
I also have this application to Windows version (exe) and it works withou any problem. But in Mac when decompressing the file loses permissions.

... or launch /usr/bin/chmod to change the permissions (via NativeApp API) and then execute your .app?

Similar Messages

  • How do I stop DW CS6 randomly changing file permissions via FTP?

    How do I stop Dreamweaver CS6 12.0.1.5842 randomly changing file permissions when it uploads files to my web server via FTP.
    I can no longer trust Dreamweaver to upload websites correctly as it changes permissions on some files which then deny the server access to the file which in turn makes the webpage unreachable/return a 403 error.
    This is driving me insane.
    I'm using an early 2011 Macbook Pro 10.7.5.

    Hi,
    I'm having this problem too. Has Adobe fixed the issue yet? This appears to be an Adobe problem, not all the web hosts out there. CS6 is ramdomly (meaning: not every time) changing permissions on files uploaded with it and is not usable for web work until this problem is fixed by Adobe or a solution is provided. If I wanted to use a separate FTP program I would not have recommended that my employer buy multiple Adobe CS6 product licenses. One of the primary appeals of DW is the integration of FTP into the workflow.
    I am using a destop iMac2.8 GHz Intel Core 2 Duo, 4 gigs of 800 MHz DDR2 SDRAM.
    OSX 10.7.5
    I am using DW Version 12 Build: 5808
    Dreamweaver CS4 that I was using until this new purchase was working just fine. No file permisssion changes. I am being forced to go back to using it until Adobe posts a fix for this.
    I should ask while I'm here: has anyone found a solution for this yet?
    Thanks,
    -c-

  • Permz - Quickly change file permissions in any file manager

    Designed to be integrated into any file manager, permz is a bash script which presents a GUI menu.  You can use it to quickly change file permissions and ownership as a normal user or as root, and delete files as root.  I wrote this because I have yet to see a file manager that isn't cumbersome for this - the mechanism is usually buried on a second tab of the Properties window, and changing permissions often involves multiple clicks in a grid. To change the owner of a file, you need to type the username. And if the file is owned by root, you can't do anything.
    permz --help
    Presents a GUI menu for changing file permissions/ownership. May be run
    as a normal user or root.
    Requires: zenity gksu
    Optional: sudo (recommended to prevent multiple root password prompts)
    Usage: permz FILE [...]
    MENU FUNCTIONS:
    rwxrwxrwx Sets file(s) to given permissions
    Sticky Clear/Set Performs "chmod -t" or +t to clear or set the sticky
    bit. You may select to clear/set sticky in addition
    to changing other permissions.
    Recursive go-rxw "chmod -R go-rxw" on file(s) recursively, denying
    access to non-owners
    Recursive go-w "chmod -R go-w" on file(s) recursively, denying write
    to non-owners
    Recursive ugo+rX "chmod -R ugo+rX" giving read access to all. Also
    sets +x for directories and executables.
    Recursive ugo+w "chmod -R ugo+w" on file(s), giving write to all
    (You may select several compatible recursive functions above at once)
    Owner USER As ROOT Sets ownership to USER:USER as root
    DELETE As ROOT Deletes file(s) as root. Must be used alone or with
    "Perform Recursively" (to delete directories - USE
    WITH CAUTION). Not available if permz is run as root.
    Perform As ROOT Run as root to change selected permissions.
    (Use of root is automatic when changing ownership)
    Perform Recursively Adds -R to all chmod, chown, and delete commands to
    descend into subdirectories. Use in conjunction with
    any other functions. (Recursion is automatic for
    "Recursive" functions above)
    Current su command is set to: gksu -gS
    If you're somewhat familiar with bash, adding additional options or changing the existing ones is straightforward.
    I have tested it pretty thoroughly but if you do encounter anything amiss please let me know.
    More details at http://igurublog.wordpress.com/downloads/script-permz/
    And in the AUR at http://aur.archlinux.org/packages.php?ID=36978
    Instructions for integrating permz into PCManFM-Mod are here.
    Last edited by IgnorantGuru (2010-05-05 13:53:08)

    rransom wrote:Recursive ugo+rX would be more useful than "Recursive ugo+r (dirs +x)".  (The +X feature of chmod is available at least in GNU coreutils, FreeBSD, and POSIX 2003.)
    Done - thanks for the tip.  I also left the old code active in there with just the menu option disabled, so if anyone wants it the other way or wants both it's easy to enable.  The difference is that the old way won't make any files +x, just dirs.
    permz doesn't provide every possible setting of permissions, just common ones, so you may want to customize it.  But I used to have these as user actions when I used Krusader and I found these were the handy ones, at least for me.

  • Changing File Permissions via FTP for WordPress

    Hi,
    I access files for a WordPress installation via FTP and when I try to change permissions to some files for some plugins compatibility issues I get the error below and the permissions are not applied.
    SITE CHMOD 747 colors.css
    Response: 500 'SITE': command not understood
    Best Regards,
    Abby Doc

    Hello Abby,
    Thanks for posting here.
    I would like to know how you're trying to change File permissions. Is that by using FileZilla or something?
    I would suggest you to refer the below links.
    Related Thread:
    http://social.msdn.microsoft.com/Forums/windowsazure/en-US/50e94a19-066b-443e-a70a-4fe3d99a6e95/how-to-set-file-permissions?forum=windowsazurewebsitespreview
    http://wordpress.org/support/topic/chmod-aka-file-permissions
    Steps to change a directories File Permissions using FileZilla FTP.
    Stop your website from the management console (https://manage.windowsazure.com)
    Open up the FTP site in Filezilla
    Rename the directory that has the problem
    Restart your website.
    I hope that helps.
    Best Regards,
    Sadiqh Ahmed

  • Changing file permissions

    Hi, does anybody have any idea how to change file permissions on a apache server. I have created ftp app that transfers file from a computer to a server and I need to change the file permissions to 0777. I'm using FileTransferClient from enterprisedt.
    Cheers
    Edited by: Ash3003 on Dec 10, 2008 2:24 AM

    Hmm ok, im a little bit lost. The server is running a pretty complicated video broadcasting site that I dont have much to do with. the app im making encodes videos and uploads them to a import directory on the server. From there some type of program accepts them and puts them in the sites playlist. The problem is the program that accepts them has to have the permissions set to 0777 before it recognizes them. My app doesn't run on the server it only get files there. And as far as i know these are the only files that need the permissions to 0777. by changing the unmask on the server will that effect other files on the site.

  • Adobe air with flex, file new, open and save for Desktop software program

    I already have a headache from all the searching. I cannot believe this to be such a confusing topic as every software program we create must be able to save user input, right.
    Here is the problem:
    Novel writing software program Main window has tabnavigator with four navigatorcontent pages 1. characters, 2. worlds, 3. objects, 4. Editor
    Each navigatorcontent page has user input fields in the form of textinput component, textarea component, richtexteditor component, etc.
    problem 1:
    The user needs to be able to open a new project and give it a name and state where it must be saved. All user input in the Novel writing software program must be attached to the file name the user specified - cannot give sample code cause I don't even know where to start looking anymore.
    Problem 2:
    If the user has now defined a new project name, all his input from the different input components has to be compiled into a single file that can be saved. (Dan Pichelman gave me a satisfactory answer on using the file.borwseforsave funtion.) That makes sense, but I first need to get all the user input into that single file. I was convinced that it must be an xml file and that there would be a guide on how to do this but...
    Problem 3:
    This brings me to another problem. All the pages I've researched so  far tell me how to load data from an xml file into a component, but not how to write the text from the component into the xml file. And this xml file cannot be the prefs file in the storage directory, it has to be named by the user and then after filling in all his text in the different tabs of the software, must be saved in this xml file and saved where the user chooses.
    Problem 4:
    now that the user put in his text and it is written to an xml file that he has named and set the path to, he goes on vacation and in two weeks opens his saved file to work on his project again. All the data that was stored in the xml must now be written back into the different user input components so he can continue working on his project, truth be told, there are some samles and tutorials on this subject, but again from only a single page perspective not a multiple tab perspective.
    Problem 5:
    Now the user has deleted and/or changed some text he put in when he started, he wrote some more text in the textareas and texteditor and he clicks the file - save button. The xml file or whatever needs to be used must be updated and saved with all the changes overwriting the old file.
    Problem 6:
    The data entered by the user will end up being a book of say 400 pages. This data will obviously be mostly in the richtexteditor component, so whatever method of saving is used, database or xml or whatever, needs to be able to contain all this data.
    Thought, if you are working with for instance, microsoft powerpoint, it has multiple pages all containing different user inputs and when you click flie - save, it saves all that input into one file. When I as a user opens that saved file it loads all that content back into its place and I can change and manipulate the input and save it again. I would have thought this would be one of the first things adobe or any other software would teach as this is what sofware programs are all about. But alas, the tutorials on this subject for adobe air for Desktop application is extreeeeemely rare.
    My promise is, if someone can help me with this or there is a tutorial out there that covers this properly I  will write a tutorial on this for other newbies as I progress step by step.  
    Pleeeeeeease help this ignorant novice
    Regards

    to save a file you would do something like:
    FileWriter fw = new FileWriter( fileName );
    textComponent.write( fw );
    fw.close();See the JFileChoose API for filtering files by extension. The API gives an example.

  • Adobe Air and Excel file

    I have my application running in a adobe air which gives
    options to the user to open the reports in excel, csv file, rtf and
    pdf options. I am able to open those files or atleast gets an
    option to save the file on the machine for IE, firefox, Goodgle
    chrome. But in Adobe Air it just gives a blank page and not even
    gives me an option to save the file as other browser does.. Has
    anyone have an application that gives an option to open the file in
    excel or or any format and did they face any issues...
    I am just stuck here, can't proceed further, so any help
    would be appreciated..

    You can save files in XLS and open it with Excel in AIR2:
    http://coenraets.org/blog/2009/11/open-in-excel-another-air-2-mini-sample/
    There is also a nice AS3XLS library used there allowing to read and write XLS files:
    http://code.google.com/p/as3xls/
    Hope that helps.
    Thanks,
    Oleg.

  • Changing file permissions in java

    Hi..
    I am creating log files using file handler class.They are created with some permissions in linux. Now I want to change the permissions of the those log files.
    I run this java code only once..so it should modify the permissions of the existing log files and the permissions of the new files getting created as well.
    Could u any one shed some light on it...
    Thanks in advance..

    Kiran,
    There are several ways to do this. I guess the easiest would be to change the "umask" of the (linux) user who is launching OC4J -- that way, any file created by that user will have the required permissions. Isn't that better than creating the files with the wrong permissions (in the first place) and them trying to change them afterward? (Or have I misunderstood your question?)
    Anyway, I fail to see how this is connected to OC4J?
    Good Luck,
    Avi.

  • Is it possible to get KM change file permissions event?

    Hi,
    I would like to get in my code events when file permissions are changed.
    Please could you answer or to advice some workaround if it's not possible?
    Thanks.

    Hi,
    There are no events for permission changes in KM.
    You have to find some way of custom development for this. May be something related to security manager kind of. I am not so sure whether security manager helps.
    Regards,
    Yoga

  • Mass change file permissions

    Long story but basically a couple of months ago one of my logins just suddenly dissapeared. Would not let me in with that user name...no good. Was still able to access the files going through the root, but when I created a new login I was unable to access the old login's files...only through the root. Is there a way to mass change the permissions so that the files are accessible?
    much thanks!
    aaron

    Rippeddisc wrote:
    Long story but basically a couple of months ago one of my logins just suddenly dissapeared. Would not let me in with that user name...no good. Was still able to access the files going through the root, but when I created a new login I was unable to access the old login's files...only through the root. Is there a way to mass change the permissions so that the files are accessible?
    yes, it's possible but you have to do it from terminal. DO NOT try to change permissions recursively on your old home folder from Finder. However, none of this is probably necessary and it should be a simple matter to recreate your old account with the old homedirectory. would you prefer that or do you really want to just move the files from the old home directory to the new one?
    if you don't want to recreate the old user,
    to recursively change permissions on that home directory run the following terminal command from the account you want to access those files from
    sudo chown -R $USER /users/oldusername
    instead of oldusername put the short name of the user that disappeared.
    You'll have to enter your admin password (which you won't see). that's normal.
    much thanks!
    aaron
    Message was edited by: V.K.

  • How to change file permissions on ULOG file??

    Hi
    I'm trying to change the file permissions on the ULOG file. By default it's being created with rw-rw-rw- permissions, and so any user can overwrite it.
    I'm using Tuxedo 8.0 on HP-UX.
    I've tried umask and that doesn't work. Nor does the PERM setting in the ubb file - looks like that is only for IPC structures.
    I want it to be created with rw-r--r-- permissions so that only the tux administrator has write access.
    Thanks in advance.

    We also encouter this problem. Seems like hard code. As it doesn't related to umask.
    As workaround solution, you may want to set ULOGPFX inside UBBCONFIG file, and proteck the directry with access mode 700.

  • Change File Permissions (Ownership) Recursively

    While running under my User, I restored some files (from Retrospect) for another User on my MacBook.  Using the Finder, I moved them to the other User's folder but they when I look at the directories and files that I moved, I see that I am still the "owner" in the file permissions.
    I need to change file permission ownership recursively down the hierarchy of several folders, e.g., Documents, etc.
    I'm happy to use chown in Terminal if someone will just give me a clue on the proper command.
    Thanks for your help.
      - nello
    MacBook (Early 2006)
    10.6.8

    Well,
    $ man chown
    gives you the chown manual page, which is always a good idea to read if you're not familiar with the command. In this instance, I think the command would be
    $ chown -vR <owner> <file>
    But you might feel more comfortable with a GUI tool like BatChmod.

  • Automator: shell script to change file permissions

    Hey guys,
    Just created a workflow to copy some files from one location to another.
    Second thing I want to do is run a shell-script to set some file permissions recursively, some for the folders, the other for the files.
    I figured I could do the following:
    cd /IntoAFolder
    find . -type d -exec chmod 770 {} \;
    Unfortunately, this seems to be needed to be done as a sudo'er and thus requires the user's password.
    So the question is, how do I get that password and hand it to the shell script or is there another way of doing this?

    What I want to do is recursively chmod the subfolders and files of a "root"-folder.
    The way I know to do so is:
    cd /root-folder
    find . -type d -exec chmod 755 {} \;
    That will chmod all subfolders from the root-folder to 755.
    Next i want
    find . -type f -exec chmod 644 {} \;
    That will chmod all subfiles fromn the root-folder to 644
    Unfortunately, find gives me a permission denied when I run this command from the command-line. When I just manualy chmod everything that works fine but is a bit to much work when it comes down to a tree of 5 subfolders and 120 files.
    Waht basically hapens:
    The user selects a bunch of folders.
    Then they are copied to /Applications/RCT3.localised/Data/Styles/Themed
    and then I need to chmod them just to be sure, as sometimes stuff break along the way if you don't

  • How to batch change file permissions?

    I posted this problem in another forum and think it belong here.
    A client sent me a CD of data and graphical files. I copied them into a new folder on my desktop but I am unable to alter or change them because they are read only.
    How can I change all the files in the directory over to read/write? Is there an easy way to do this?
    John

    BatChmod is a good GUI application for changing permissions.
    Or you can try this in a Terminal window:
    chmod -R u+rwX [spacebar, drag folder to Terminal window, press return]

  • Cyberduck - Can't change file permissions

    Hello,
    Im using the latest nightly build of cyberduck and the latest version of leopard.
    Okay So i upload the file to my server.
    1. The permissions column on the remote browser says "unknown"
    2. I click the file, and choose "info", and next to permissions it says "Unknown"
    3. Aside from the above, the entire area for permissions is grayed out. It doesn't allow me to adjust permissions.
    The server is a RHE linux server running cpanel. I logged into another host which is hostgator, and I have the same problem with them so I know its not my server.
    Can anyone assist me? Thank you in advance for your replies.

    I used ntfs-3g as recommended, and it worked, thanks!
    I'd copy pasted those lines from a previous Ubuntu install where they worked just fine, so I didn't bother changing them, though I was aware that writing priveleges require ntfs-3g. I'm still not owner of any of the files / folders, but I can edit and delete them as I see fit, so no harm.
    Thanks again :-)

Maybe you are looking for