• 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: Wanted: A Text View for AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wanted: A Text View for AppleScript


  • Subject: Re: Wanted: A Text View for AppleScript
  • From: "Mr. Barry Wainwright" <email@hidden>
  • Date: Thu, 01 Mar 2012 16:26:55 +0000

Two alternatives (only you can decide if these are 'better' for your application):

Write things to a log file, and use the console to view this log file:
set filePath to ((get path to temporary items) as text) & "test.log"
set logFile to (open for access filePath with write permission)
set eof logFile to 0
tell application "Console"
open file filePath
activate
end tell
repeat with x from 1 to 10
write "Line " & x & return to logFile
delay 2
end repeat
close access logFile

Or, 'say' the feedback you want to pass back to the user. This works best for simple, ephemeral messages:

set maxCount to 10000
say "Starting"
repeat with x from 1 to maxCount
if x / 1000 = (x / 1000) as integer then say "Item " & x
end repeat
say "Finished"


-- 
Barry

-- 
Barry
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: A Text View for AppleScript [solved]
      • From: Jerry Krinock <email@hidden>
References: 
 >Wanted: A Text View for AppleScript (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Wanted: A Text View for AppleScript
  • Next by Date: Re: Wanted: A Text View for AppleScript
  • Previous by thread: Re: Wanted: A Text View for AppleScript
  • Next by thread: Re: A Text View for AppleScript [solved]
  • Index(es):
    • Date
    • Thread