Get Livecode to include the revXML external with Search

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
doobox
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 284
Joined: Tue May 24, 2011 11:47 pm

Get Livecode to include the revXML external with Search

Post by doobox » Thu Jun 04, 2015 6:38 pm

Hi there,

Just wondering if anyone has any tips on forcing Livecode to recognise the fact it should be including the revXML external in the standalone OS X application when the Search for includes option is selected in the standalone settings.
I can easily switch the standalone settings to "select includes" in general section, but as this is a plugin I am building, I'd really like to take that onus off the user.

Currently The only xml related code I have running in the yet unfinished plugin stack, that gets made a substack of whatever main stack, is this :

Code: Select all

// GET THE APPCAST SHORT VERSION NUMBER
function getAppcastShortVersionNumber
   local tTree
   put revXMLCreateTree(sAppcastData, false, true, false) into tTree
   if tTree is not an integer then
      answer error "Failed to process xml file with error: " & tTree
      return 0
   end if
   if tTree is empty then
      return 0
   end if
   put revXMLAttribute(tTree, "rss/channel/item/enclosure","shortVersionString") into tShortVersion
   revXMLDeleteTree tTree
   return tShortVersion
end getAppcastShortVersionNumber
But this does not appear to be enough, to get Livecode to recognise it needs to be including the revXML external.

Just thought someone may have found a certain command, function or listener, that is part of the revXML api, that does indeed get spotted by Livecode and force it to include the external, during the standalone building process.
Kind Regards
Gary

https://www.doobox.co.uk

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm
Location: Greece

Re: Get Livecode to include the revXML external with Search

Post by zaxos » Thu Jun 11, 2015 11:41 am

how bout:

Code: Select all

set the externals of me filePath
Knowledge is meant to be shared.

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Get Livecode to include the revXML external with Search

Post by Klaus » Thu Jun 11, 2015 12:15 pm

Hi zaxos,

Code: Select all

set the externals of me filePath
maybe its not your day today? :D


Best

Klaus

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Get Livecode to include the revXML external with Search

Post by Simon » Thu Jun 11, 2015 4:29 pm

Code: Select all

set the externals of me filePath
:D
But I do like the enthusiasm.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm
Location: Greece

Re: Get Livecode to include the revXML external with Search

Post by zaxos » Sat Jun 20, 2015 7:42 pm

:oops:, actually its never my day, i have to edit my posts at least twice until they'r right!
Knowledge is meant to be shared.

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Get Livecode to include the revXML external with Search

Post by Klaus » Sun Jun 21, 2015 3:31 pm

zaxos wrote::oops:, actually its never my day, i have to edit my posts at least twice until they'r right!
Don't be sad, there will come better days :D

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”