• 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 To A File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing To A File


  • Subject: Re: Writing To A File
  • From: Randy Beaudreault <email@hidden>
  • Date: Mon, 29 Sep 2003 23:40:35 -0700

Thanks to everyone here for posting their thoughts. I found my solution by going back to a one-time attempt using "do shell script." I simplified my previous attempt and I have this as the result:
set Current_Date to (day of (current date)) as string
do shell script "cat /Users/maccult/Library/Preferences/once-a-day"
if (result  Current_Date) then
do shell script "echo " & Current_Date & " > /Users/maccult/Library/Preferences/once-a-day"
run application "CaminoKnight"
delay 5
run application "MacJanitor"
delay 5
run application "Carbon Copy Cloner"
end if

This does exactly what I want.
--
Randy

OS X - UNIX for the rest of us
NetBSD - Catch the Power!
_______________________________________________
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.

  • Prev by Date: Re: File Path Separator Syntax (was Re: Writing To A File)
  • Next by Date: Re: "starts with" any list item
  • Previous by thread: Re: File Path Separator Syntax (was Re: Writing To A File)
  • Next by thread: Re: Writing To A File
  • Index(es):
    • Date
    • Thread