Re: Problems setting a player object to an alias in a script

2010-05-31 Thread J. Landman Gay

Howard Bornstein wrote:

I want to set a player object to an alias of an MP3 file. If I do it in a
script, the player returns the message could not create movie reference.
However, if I set the player manually (i.e. by clicking the folder icon on
property palette's source field) it takes the alias as a valid file.


That's because the OS re-interprets the alias to point to a valid file 
reference, and returns that instead of the alias path. You'd need to do 
that yourself if you want to script it, otherwise you won't get a valid 
file name.


However, when selecting a file for the player manually, using the built-in
dialog box, there is an Enable popup that defaults to Quicktime Movies. When
this is selected, it is impossible to select an MP3 file. But if I change
the popup to All Files, then I can choose the MP3.

Apparently, when trying to do this via script, the MP3s are not available
because All Files (or its equivalent) is not selected. How can I get access
to all files using the set filename of player n to [filename] in
Transcript?



The dimming of certain file types is just a selector filter within the 
Open File dialog, it has no bearing on what files can be chosen or 
opened by script.


I think the problem you are having is that the alias is interpreted by 
Rev as an actual file instead of a pointer to a file. Since the alias 
file itself isn't an mpg, you get the error. Try using the 
aliasReference function to get the real file name and set your player to 
that instead.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problems setting a player object to an alias in a script

2010-05-31 Thread Howard Bornstein
On Mon, May 31, 2010 at 8:36 AM, J. Landman Gay jac...@hyperactivesw.comwrote:

  Try using the aliasReference function to get the real file name and set
 your player to that instead.


Thank you thank you! This is exactly what I was looking for and solves my
problem nicely. Since I may have a mix of aliases and normal files, this
function makes it easy to tell if the file is an alias as well as providing
the valid reference to the actual file.

This was one of the multitude of Rev functions I didn't even know existed.

-- 
Regards,

Howard Bornstein
---
www.designeq.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problems setting a player object to an alias in a script

2010-05-31 Thread Richard Gaskin

Howard Bornstein wrote:


On Mon, May 31, 2010 at 8:36 AM, J. Landman Gay jacque at 
hyperactivesw.comwrote:


 Try using the aliasReference function to get the real file name and set
your player to that instead.


Thank you thank you! This is exactly what I was looking for and solves my
problem nicely. Since I may have a mix of aliases and normal files, this
function makes it easy to tell if the file is an alias as well as providing
the valid reference to the actual file.

This was one of the multitude of Rev functions I didn't even know existed.


Another example of the value of the Rev Dictionary's See Also section. :)

Sometimes in my spare time I just browse around in the Dictionary 
clicking See Also links, and almost always learn something new.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problems setting a player object to an alias in a script

2010-05-31 Thread Richmond Mathewson

 On 31/05/2010 22:04, Howard Bornstein wrote:

On Mon, May 31, 2010 at 8:36 AM, J. Landman Gayjac...@hyperactivesw.comwrote:


  Try using the aliasReference function to get the real file name and set
your player to that instead.


Thank you thank you! This is exactly what I was looking for and solves my
problem nicely. Since I may have a mix of aliases and normal files, this
function makes it easy to tell if the file is an alias as well as providing
the valid reference to the actual file.

This was one of the multitude of Rev functions I didn't even know existed.


Join the club!

I've been messing around with RunRev for 9 years and I have now reached
the conclusion that I know about 25% of the functions - and that's having
developed quite a number of applications with the thing!
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problems setting a player object to an alias in a script

2010-05-31 Thread Richmond Mathewson

 On 31/05/2010 22:14, Richard Gaskin wrote:

Howard Bornstein wrote:

On Mon, May 31, 2010 at 8:36 AM, J. Landman Gay jacque at 
hyperactivesw.comwrote:


 Try using the aliasReference function to get the real file name and 
set

your player to that instead.


Thank you thank you! This is exactly what I was looking for and 
solves my

problem nicely. Since I may have a mix of aliases and normal files, this
function makes it easy to tell if the file is an alias as well as 
providing

the valid reference to the actual file.

This was one of the multitude of Rev functions I didn't even know 
existed.


Another example of the value of the Rev Dictionary's See Also section. :)


Mmm, mmm, mmm, merr, merr, merr, so there!

Really? I found aliasReference by typing in 'alias' into the search box
in the top right-hand corner.

---

The problem is not with the dictionary, Ding An Sich; but knowing 
exactly what

term to type in the search box:

Let's consider the word 'alias' (quite apart from the fact that in the 
context of WIMP
GUIs on computers it has been radically resemanticised from its 
prototypical meaning

in the non-computer world):

Macintosh:  Alias  (actually 'alias' with the meaning of a graphic 
object which opens a pathway
to a directory elsewhere is a Mac-specific term that I remember learning 
when I cracked open
my first Mac with OS 7 - a bit confusing, having only worked with 
BBC-MOS and UNIX before that).


Windows: Shortcut / reparse point (whacked-out or what?)

Linux:  symbolic link

[I see that UBUNTU 10.04 has Make Link in its menu system - that's not 
going to help
what Steve Jobs calls the switchers that the South African Astronaut 
obviously

envisages converting from Windows to Ubuntu in droves.]

UNIX:  Symbolic Link / Soft Link / symlink

and they don't all behave in the same way . . .  :)

---

Now, let's suppose I am a Windows-only sort of chap (I'm not); so on 
Iooking up Shortcut (not knowing

the term 'alias' or 'symbolic link'; I will get:

short Specifies a format for the date and time functions, the convert 
command, and the name, ID, and owner properties.


and  shortFilePath   neither of which equate to 'alias'.

Similarly with Linux; on looking up 'symbolic' the dictionary draws a 
complete blank.


This means that, while the IDE may be, moderately, cross-platform; the 
dictionary is not.


-

There are other things one can do with aliases, I see.



Sometimes in my spare time I just browse around in the Dictionary 
clicking See Also links, and almost always learn something new.


Nice to have spare time . . .  :)

Personally I prefer my Sanskrit dictionary; it has, among other things, 
the advantage that it can
be propped up next to the chopping board in the kitchen when I'm getting 
supper organised; no

real problem with splashing ghee on the keyboard either!

Mathewson.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problems setting a player object to an alias in a script

2010-05-31 Thread Howard Bornstein
On Mon, May 31, 2010 at 12:14 PM, Richard Gaskin ambassa...@fourthworld.com
 wrote:

 Howard Bornstein wrote:

  On Mon, May 31, 2010 at 8:36 AM, J. Landman Gay jacque at
 hyperactivesw.comwrote:


   Try using the aliasReference function to get the real file name and set
 your player to that instead.


 Thank you thank you! This is exactly what I was looking for and solves my
 problem nicely. Since I may have a mix of aliases and normal files, this
 function makes it easy to tell if the file is an alias as well as
 providing
 the valid reference to the actual file.

 This was one of the multitude of Rev functions I didn't even know existed.


 Another example of the value of the Rev Dictionary's See Also section. :)

 Sometimes in my spare time I just browse around in the Dictionary clicking
 See Also links, and almost always learn something new.


Yes, I smacked myself upside the head after I saw Jackie's answer. Why I
didn't think to search the dictionary for 'alias' is beyond me, although I
did search for it in the User's Guide (just found stuff on anti-aliasing).

That's why this list is so valuable.

-- 
Regards,

Howard Bornstein
---
www.designeq.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Problems setting a player object to an alias in a script

2010-05-30 Thread Howard Bornstein
I want to set a player object to an alias of an MP3 file. If I do it in a
script, the player returns the message could not create movie reference.
However, if I set the player manually (i.e. by clicking the folder icon on
property palette's source field) it takes the alias as a valid file.

However, when selecting a file for the player manually, using the built-in
dialog box, there is an Enable popup that defaults to Quicktime Movies. When
this is selected, it is impossible to select an MP3 file. But if I change
the popup to All Files, then I can choose the MP3.

Apparently, when trying to do this via script, the MP3s are not available
because All Files (or its equivalent) is not selected. How can I get access
to all files using the set filename of player n to [filename] in
Transcript?

-- 
Regards,

Howard Bornstein
---
www.designeq.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Problems setting a player object to an alias in a script

2010-05-30 Thread Martin Koob

I was able to get an alias that pointed to an mp3 player to load in the
player.  I used the following script.

on mouseUp
   answer file Select the MP3 file.  with type MP3 files|mp3|Mp3 
   set the filename of player player to it
end mouseUp

This allowed me to select the alias but when I checked the player with the
property inspector the path was the path to the original.

One thing I found was that  if the alias has the word 'alias' at the end it
would not work I had to make sure it ended with .mp3.  


If you want to make sure the open file dialog allows you to open mp3 files
you have to put
 with type MP3 files|mp3|Mp3 

Note there is a space before the final quote.

Martin
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Problems-setting-a-player-object-to-an-alias-in-a-script-tp2236683p2236746.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution