Re: Permissions problem with script
Re: Permissions problem with script
- Subject: Re: Permissions problem with script
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 30 Jan 2006 14:55:47 -0500
On 1/30/06, Paul Thompson <email@hidden> wrote:
> I'm not quite sure what you meant with the last part, so just to
> make sure I'm doing it right, do you mean it should be written like
> this:
>
>
> -- this is a handler it calls the writefile below with theText
> variable and printersconf variable
> do shell script "touch" + "thefile"
> writeFile(theText, printersconf)
No. First, I made a typo - the '+' should be an '&'. But what I
meant was that you should add that line *inside* writeFile (that is,
between the "on writeFile(...)" and the "end writeFile"), specifically
as the first line after the "on writeFile(...)". It should wind up
looking like this:
on writeFile(thecontents, thefile)
do shell script ("touch " & quoted form of thefile)
set f to (open ....
etc. Also, note that there's a space between the h in "touch" and
the closing quotation mark.
*before* you try to "open"
>
> Thank you,
>
> Paul
>
>
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden