revGoURL help

Tereza Snyder tereza at attainmentcompany.com
Thu Nov 6 13:07:45 CST 2003


on 11.06.03 12:58 PM, Tereza Snyder wrote:

>> I've got a file "Gen.html" on my desktop (OS X) along with my RunRev
>> application.  The following script will open "Gen.html" while in
>> Runtime but the Standalone does not work:
>> 
>> on mouseUp
>>  set the itemDelimiter to "/"
>>  put (item 1 to -2 of the effective fileName of this stack)&"/" into
>> myFolderName
>>  get "file:"&myFolderName&"gen.html"
>>  revGoURL it  --- This works in Runtime but not in standalone
>> end mouseUp
> 
> You might try:
> 
>   if last item of myFolderName is "contents" then -- in a bundle format
>     put item 1 to -2  of myFolderName  into myFolderName
>   end if
> 

OOPS! Hasty post!

correction:

if item -2 of myFolderName is "contents" then -- in a bundle format
    put item 1 to -4  of myFolderName  into myFolderName
end if
 



+ Tereza Snyder 
+ Senior Software Developer
+ Attainment Company, Inc.
+ <www.attainmentcompany.com>
+ 800.327.4269



More information about the use-livecode mailing list