OS X - how to write to a file associated as a Unix executable
Glen Bojsza
gbojsza at gmail.com
Mon Feb 29 20:06:26 EST 2016
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 file created with LC and chmod verses a file created
with textmate and chmod you can see the differences in the finder or get
info on both files and see the difference.
On Mon, Feb 29, 2016 at 7:52 PM, Warren Samples <warren at warrensweb.us>
wrote:
> 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
> using Terminal and 'print "something-that-will-execute" > /output/file' or
> 'cat /working/file > /working/file-cloned' and chmoding that file doesn't?
>
>
> Warren
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list