Re: Simple "value Class" problem that`s driving me crazy
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.