Saturday, January 20, 2018

#1 2011-02-06 08:59:04 pm

AudialRedux
Member
Registered: 2010-12-08
Posts: 45

I Need Help With Making A Txt File! Please Help!!!

Ok Im not on my mac at the moment to i cant post the code ive already done that needs help with....
BUT!..
i still need help.

ok i want to make a txt file with the name "logfile" with input data that says "clean!" and for it to be saved in location "/tmp/"

the thing is i dont want any noticable appication poping up an doing all this in the users face i want it to be done in the background PLEASE!.

MANY THANKS IN ADVANCE IS YOU REPLY! :d :d

Offline

 

#2 2011-02-07 05:21:50 am

DJ Bazzie Wazzie
Member
From:: the Netherlands
Registered: 2004-10-20
Posts: 2728
Website

Re: I Need Help With Making A Txt File! Please Help!!!

Applescript:

do shell script "echo 'clean!' > /tmp/logfile.txt" --deletes everythinf in the file and puts 'clean!' in your file
do shell script "echo 'clean!' >> /tmp/logfile.txt" --appends 'clean!' in your file

Offline

 

#3 2011-02-07 06:34:18 pm

AudialRedux
Member
Registered: 2010-12-08
Posts: 45

Re: I Need Help With Making A Txt File! Please Help!!!

thanks bro for the reply!.. but i figured out an much easier way tongue i was up till 2am figuring it out ahahah but the code you have given me is a fail safe sultion big_smile thank you once again smile

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)