• 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: Simple "value Class" problem that`s driving me crazy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple "value Class" problem that`s driving me crazy


  • Subject: Re: Simple "value Class" problem that`s driving me crazy
  • From: Deivy Petrescu <email@hidden>
  • Date: Sun, 4 Jan 2004 23:35:08 -0500

At 10:10 PM -0600 1/4/04, Colin Stagner wrote:
The "play" command requires that you give it a file specification, not a string.

No it does not!
As the original sender wrote
"
if SelectedSong is "TestSong" then
set SelectedSong to "TestSong"
end if
"
fixed the problem.

You need to send a string and the text returned from display dialog is Unicode text. To get the text part, one needs to get it from the Unicode as record.

Thus

set SelectedSong to +class ktxt; of (SelectedSong as record)

does the trick.

However, I do concur with you that the dictionary says reference and it mentions file.
Thus, there should be no reason one would thing that a string would work.
But if you already got wet with AppleScript you should know that you can always try it...
--
Regards
Saudagues

Deivy
http://www.dicas.com
_______________________________________________
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: Simple "value Class" problem that`s driving me crazy
      • From: Deivy Petrescu <email@hidden>
References: 
 >Simple "value Class" problem that`s driving me crazy (From: Bruce <email@hidden>)
 >Re: Simple "value Class" problem that`s driving me crazy (From: Colin Stagner <email@hidden>)

  • Prev by Date: Re: Play Sound broke
  • Next by Date: Re: Simple "value Class" problem that`s driving me crazy
  • Previous by thread: Re: Simple "value Class" problem that`s driving me crazy
  • Next by thread: Re: Simple "value Class" problem that`s driving me crazy
  • Index(es):
    • Date
    • Thread