tereza at attainmentcompany.com
Thu Nov 6 14:07:45 EST 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
>> 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!
if item -2 of myFolderName is "contents" then -- in a bundle format
put item 1 to -4 of myFolderName into myFolderName
+ Tereza Snyder
+ Senior Software Developer
+ Attainment Company, Inc.
More information about the Use-livecode