Re: OS X - how to write to a file associated as a Unix executable

2016-03-02 Thread Glen Bojsza
Thanks Mark That did it ... both methods of filetype allowed me to correctly get the chmod results I was looking for. On Tue, Mar 1, 2016 at 2:54 AM, Mark Waddingham wrote: > On 2016-03-01 02:06, Glen Bojsza wrote: > >> What I am trying to do is within a LC application >>

Re: OS X - how to write to a file associated as a Unix executable

2016-02-29 Thread Mark Waddingham
On 2016-03-01 02:06, Glen Bojsza wrote: What I am trying to do is within a LC application 1. put field "mytest" into URL "binfile:~/race" This creates a file called race in the ~/ directory. The problem is that when you do a chmod +rw race the file is still recognized as textedit file and NOT

Re: OS X - how to write to a file associated as a Unix executable

2016-02-29 Thread Glen Bojsza
What I am trying to do is within a LC application 1. put field "mytest" into URL "binfile:~/race" This creates a file called race in the ~/ directory. The problem is that when you do a chmod +rw race the file is still recognized as textedit file and NOT a UNIX executable. When you look at a

Re: OS X - how to write to a file associated as a Unix executable

2016-02-29 Thread Warren Samples
On 02/29/2016 06:09 PM, Glen Bojsza wrote: This only works IF the file created is associated with the terminal application. The issue is creating the proper file format so when the chmod creates it as Unix executable. Are you saying that saving a file from TextMate and chmoding it works but

Re: OS X - how to write to a file associated as a Unix executable

2016-02-29 Thread Warren Samples
On 02/29/2016 06:06 PM, Warren Samples wrote: 'get shell("chomd +x /your/new/file")' Well, that of course won't work jaja. chmod ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and

Re: OS X - how to write to a file associated as a Unix executable

2016-02-29 Thread Glen Bojsza
This only works IF the file created is associated with the terminal application. The issue is creating the proper file format so when the chmod creates it as Unix executable. On Mon, Feb 29, 2016 at 7:06 PM, Warren Samples wrote: > On 02/29/2016 03:13 PM, Glen Bojsza

Re: OS X - how to write to a file associated as a Unix executable

2016-02-29 Thread Warren Samples
On 02/29/2016 03:13 PM, Glen Bojsza wrote: Hello, I am trying to write the from a text field to a file and then change the file so it is executable. put field "mytest" into URL "binfile:~/race" or put field "mytest" into URL"file:~/race" The file race is created in either case but are

OS X - how to write to a file associated as a Unix executable

2016-02-29 Thread Glen Bojsza
Hello, I am trying to write the from a text field to a file and then change the file so it is executable. put field "mytest" into URL "binfile:~/race" or put field "mytest" into URL "file:~/race" The file race is created in either case but are associated with textedit. I require it to be