• 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
Importance of "Tell Me"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Importance of "Tell Me"


  • Subject: Importance of "Tell Me"
  • From: WalterStuartBushell <email@hidden>
  • Date: Sat, 03 Mar 2018 14:35:04 -0500

It seems that tell me is necessary to “log” properties at least in
QuicktimePlayer. I just added “Tell me” on a hunch. Otherwise,
the output is not helpful in some cases as shown below

tell application "QuickTime Player"
        set docName to open file ((path to music folder as text) &
"itunes:itunes music:unknown artist:none:Gunshot01.mp3")
        log docName's duration
        set x to docName's duration
        log {"docName's duration=", x}
        tell me to log {"tell me ", docName's duration, docName's data size,
docName's data rate}
        log {"do not tell me : ", docName's duration, docName's data size,
docName's data rate}
        --{docName's duration, docName's data size, docName's data rate}

end tell

=======================
tell application "QuickTime Player"
        path to music folder as text
                --> "After Ewe:Users:Walter:Music:"
        open file "After Ewe:Users:Walter:Music:itunes:itunes music:unknown
artist:none:Gunshot01.mp3"
                --> document "Gunshot01.mp3"
        (*duration of document Gunshot01.mp3*)
        get duration of document "Gunshot01.mp3"
                --> 0.470204081633
end tell
(*docName's duration=, 0.470204081633*)
tell application "QuickTime Player"
        get duration of document "Gunshot01.mp3"
                --> 0.470204081633
        get data size of document "Gunshot01.mp3"
                --> 10684
        get data rate of document "Gunshot01.mp3"
                --> 22722
end tell
(*tell me , 0.470204081633, 10684, 22722*)
tell application "QuickTime Player"
        (*do not tell me : , duration of document Gunshot01.mp3, data size of
document Gunshot01.mp3, data rate of document Gunshot01.mp3*)
end tell
__
What is the difference between unethical and ethical advertising? Unethical
advertising uses falsehoods to deceive the public; ethical advertising uses
truth to deceive the public.
Vilhjalmur Stefansson (1879 – 1962)

 _______________________________________________
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

  • Next by Date: [ANN] Script Debugger 7 released
  • Next by thread: [ANN] Script Debugger 7 released
  • Index(es):
    • Date
    • Thread