Where is applications folder on OSX

Sarah Reichelt sarah.reichelt at gmail.com
Mon Nov 2 18:02:34 EST 2009


On Tue, Nov 3, 2009 at 6:32 AM, Richard Miller <wow at together.net> wrote:
> Not sure how to solve this.
>
>   put specialfolderpath("apps") & "/videos" into mainfolder
>
> The above line does create the correct pathway to this folder in
> Applications. However, I then need to set the filename of a player to a
> video inside that folder.
>
>   put mainfolder & "/test1.mov" into fname
>   set the filename of player 1 to ("file:///" & fname)
>
> I need to use the "file:///" syntax because this is being done through
> revweb in a browser (which seems to require this syntax... unlike a regular
> player in a standalone). Using the above, the filename in the player will
> NOT be correct, however, because the player requires the users HD name to be
> right after "file:///".
>
> In other words:
>
> This doesn't work for the filename of the player:
>
>   file:///Applications/videos/test1.mov
>
> This works:
>
>   file:///Macintosh HD/Applications/videos/test1.mov
>
> I'm not sure how to correct this. None of the OSX specialfolderpath returned
> values contain the HD portion of the pathway.


I found with images, that setting the filename did not work. I had to use:
put URL ("binfile:" & tFileName) into image "Pic"

Maybe something similar would work for your videos.

Cheers,
Sarah



More information about the use-livecode mailing list