• 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: writing data to a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: writing data to a file


  • Subject: Re: writing data to a file
  • From: Wesley Alan Wright <email@hidden>
  • Date: Wed, 1 May 2002 15:28:32 -0400

I am having similar problems trying to append info to an existing file, AppleScript 1.8, MacOS 10.1.4. Code is as follows:

set linefeed to ASCII character 10
set profile to "/private/etc/CiscoSystemsVPNClient/Profiles/uvm.pcf"
set profilePOSIX to POSIX path of profile
set net_id to text returned of (display dialog "Enter your NetID:" default answer "")
set pass_word to text returned of (display dialog "Enter your password:" default answer "")
set profile_lines to "Username=" & net_id & linefeed & "SaveUserPassword=1" & linefeed & "UserPassword=" & pass_word
set the open_profile to (open for access profilePOSIX with write permission)
write profile_lines to the open_profile starting at eof
close access the open_profile

Error message is

Duplicate file name ./
:private:etc:CiscoSystemsVPNClient:Profiles:uvm.pc
--

| Wesley Alan Wright <mailto:email@hidden> |
| Academic Computing Services __0__ |
| Room 238 Waterman Building / \ | \ |
| University of Vermont \77 http://weasel.uvm.edu/ |
| Burlington, Vermont 05405-0160 USA. \\ http://www.uvm.edu/skivt-l |
| Voice:802-656-1254 FAX:802-656-0872 vv |
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: writing data to a file
      • From: Shane Stanley <email@hidden>
  • Prev by Date: A calculation question.
  • Next by Date: Re: Shell Question? Help please.
  • Previous by thread: Re: writing data to a file
  • Next by thread: Re: writing data to a file
  • Index(es):
    • Date
    • Thread