Confused

Thomas McGrath III mcgrath3 at mac.com
Wed Nov 19 22:02:28 EST 2008


on openStack
  	put applicationFolder() into AppPathMusic
  	put "MusicFolder/" after AppPathMusic
	put AppPath
	-- Now you can do what you want with looking up the .aiff files and  
you can be sure the path is correct to those files
	-- Access the .aiff files with AppPath

	-- You can also use this for other sub-folders in your folder
	put applicationFolder() into AppPathImages
	put "Images/" after AppPathImages
end openStack

function applicationFolder
      put the effective filename of this stack into tFullPath
      put empty into tFolder
      set the itemdel to "/"
      repeat for each item I in tFullPath
            if I contains ".app" or I contains ".rev" or I contains  
".exe" then exit repeat
            put I & "/" after tFolder
      end repeat
      return tFolder
end applicationFolder


Tom McGrath III
Lazy River Software
3mcgrath at comcast.net

iTunes Library Suite - libITS
Information and download can be found on this page:
http://www.lazyriversoftware.com/RevOne.html





On Nov 19, 2008, at 9:13 PM, Joe Lewis Wilkins wrote:

> Once more I find myself going in circles. I've created a standalone  
> for both Intel and Legacy Macs that plays a number of .aiff music  
> files. At one point it worked great in the IDE, but then I started  
> messing with things trying to get the Legacy version working under  
> 2.6.1. And I accomplished that, I think. (smile) Unfortunately, I  
> have lots of memory and I've gotten kind of sloppy with where things  
> are stored. Partly because of where Rev chooses to put its things;  
> partly because I'm just a bad boy! (smile)
>
> Regardless, I need to get my mind straightened out about this  
> "external" files thing. What is the very best place to have your  
> external files so that when someone puts them on their computer the  
> same relationship exists for them as it does for me. I was always of  
> the opinion that if you put everything in the same folder, the  
> externals would be seen by the application, and not having to worry  
> about exactly where that folder is placed. So, if I have the  
> following setup things should work:
>
> A folder  -- That I want a user to be able to drag from a CD to  
> their Desktop or anywhere else they see fit.
>   My standalone application
>   MusicFolder
>       Music1.aiff
>       Music2.aiff
>       etc.
>
> Then the application should have the source for the players as: / 
> MusicFolder/Music1.aiff  -- and so forth
>
> But this doesn't work. Am I all wet someway?
>
> TIA,
>
> Joe Wilkins
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list