• 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
shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

shell script


  • Subject: shell script
  • From: louie <email@hidden>
  • Date: Sat, 17 Jul 2010 18:33:57 -0700

Hi all,
I have the below shell script.
I know I can run the script in the background by
do shell script "~/bin/timeout.sh&"
What I would like to do is have the shell code in the apple script.
#! /bin/bash
counter=0
while [ $counter -lt 180 ]
do
      if [ -f ~/Desktop/testfile.txt ]
      then
              rm ~/Desktop/testfile.txt
              exit
      fi
      say "working"
      sleep 5
      counter=`expr $counter + 1`
done



louie
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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: shell script
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Rant Generator
  • Next by Date: Re: shell script
  • Previous by thread: Re: Search and Replace in String
  • Next by thread: Re: shell script
  • Index(es):
    • Date
    • Thread