I have always set up the location of the default folder with the following handler when my main stack opens... this has always worked in both the development and standalone environments.
Code: Select all
global Alocation
on whereIsApp
set itemDel to "/"
put item 1 to -2 of (the fileName of this stack) into Alocation
set the defaultfolder to Alocation
end whereIsApp
'/users/johndixon/Desktop/Dixon'
is returned and placed into Alocation; this is what I expect with the rev file sitting in the folder 'Dixon'. However, if I now build a standalone from the rev file
'/users/johndixon/Desktop/Dixon/Dixon.app/Contents/MacOS'
is returned and placed into Alocation; this is what I did not expect with the standalone sitting in the folder 'Dixon'. To get around this problem I have altered the 'whereIsApp' handler to
Code: Select all
global Alocation
on whereIsApp
set itemDel to "/"
if environment() = "development" then put item 1 to -2 of (the fileName of this stack) into Alocation
if environment() = "standalone application" then put item 1 to -5 of (the fileName of this stack) into Alocation
set the defaultfolder to Alocation
end whereIsApp
Code: Select all
if environment() = "browser" put "http://www.(sub-domain).(domain name).on-rev.com" into Alocation
But under Rev 3.5, I gave the global Alocation the address where the revlet was sitting on the On-Rev server. eg...
'Â put "http://www.(sub-domain).(domain name).on-rev.com" into Alocation'
then when I wanted to load a particular image into the revlet, for example, using
'set the filename of image "view" to Alocation &"/image1.png" '
worked fine. Using Rev 4.0, this does not work. I have asked this question before, but have to ask again... How do I tell objects where the revlet is sitting ?
And finally... anyone getting QuickTime QTVR's to run in revlets?
(an aside for Klaus : My cat is telling me that I should have gone to the conference in Scotland...)