• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Permissions problem with script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Permissions problem with script (From: Paul Thompson <email@hidden>)
 >Re: Permissions problem with script (From: "Mark J. Reed" <email@hidden>)
 >Re: Permissions problem with script (From: Paul Thompson <email@hidden>)
 >Re: Permissions problem with script (From: "Mark J. Reed" <email@hidden>)
 >Re: Permissions problem with script (From: Paul Thompson <email@hidden>)

  • Prev by Date: Re: Permissions problem with script
  • Next by Date: Changing a list to path
  • Previous by thread: Re: Permissions problem with script
  • Next by thread: Re: Permissions problem with script
  • Index(es):
    • Date
    • Thread