View unanswered posts | View active topics It is currently Wed Jun 19, 2013 8:26 am



Reply to topic  [ 11 posts ] 
 Cross reference report 
Author Message

Joined: Feb 12, 2010
Posts: 24
Post Cross reference report
Is there a way to get a cross reference of items such as devices and variables. In other words, if I swap out a device or change a variable name, how do I find a list of all the stuff that I broke. I think this could be generalized to all of the things that the user creates in one place and uses somewhere else.

Thanks,

Bill Nash


Tue Feb 23, 2010 3:24 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11814
Location: Texas
Post Re: Cross reference report
Hi Bill,

When you change a Device or Variable name, Indigo automatically updates all internal references to that device/variable.

However, it doesn't parse/grep inside AppleScripts. But for everything else it should automatically update. Are you referring to inside AppleScripts? FYI, that is on our long term feature request list currently.

_________________
Image


Tue Feb 23, 2010 7:32 pm
Profile WWW
User avatar

Joined: Apr 16, 2003
Posts: 392
Post Re: Cross reference report
In the meantime, there is Indigo Database Report

http://homepage.mac.com/imacpro/IDR/download.html

Unfortunately, it does not search your AppleScripts, but does just about everything else.

_________________
Choose to chance the rapids.
Dare to dance the tide.


Tue Feb 23, 2010 8:58 pm
Profile WWW

Joined: Feb 12, 2010
Posts: 24
Post Re: Cross reference report
bobeast wrote:In the meantime, there is Indigo Database Report

http://homepage.mac.com/imacpro/IDR/download.html

Unfortunately, it does not search your AppleScripts, but does just about everything else.


Okay, this sounds like what I want but I got an error running it. I'm running Indigo 4.1.6 as a server under Mac OS X 10.5.8. This is on a G4 so I can't go any further. After I select my database and click Show the report ... I get a little box with an error message. I used grabber and copied the whole box and attached the tiff.


Attachments:
error.tiff
error.tiff [ 33.05 KiB | Viewed 555 times ]
Thu Feb 25, 2010 11:16 am
Profile

Joined: Feb 12, 2010
Posts: 24
Post Re: Cross reference report
Wanderin Bill wrote:
bobeast wrote:In the meantime, there is Indigo Database Report

http://homepage.mac.com/imacpro/IDR/download.html

Unfortunately, it does not search your AppleScripts, but does just about everything else.


Okay, this sounds like what I want but I got an error running it. I'm running Indigo 4.1.6 as a server under Mac OS X 10.5.8. This is on a G4 so I can't go any further. After I select my database and click Show the report ... I get a little box with an error message. I used grabber and copied the whole box and attached the tiff.


PS I was running this on the included Sample database but it does the same thing on my real one.


Thu Feb 25, 2010 11:18 am
Profile
User avatar

Joined: Apr 16, 2003
Posts: 392
Post Re: Cross reference report
Wanderin Bill wrote:
Wanderin Bill wrote:
bobeast wrote:In the meantime, there is Indigo Database Report

http://homepage.mac.com/imacpro/IDR/download.html

Unfortunately, it does not search your AppleScripts, but does just about everything else.


Okay, this sounds like what I want but I got an error running it. I'm running Indigo 4.1.6 as a server under Mac OS X 10.5.8. This is on a G4 so I can't go any further. After I select my database and click Show the report ... I get a little box with an error message. I used grabber and copied the whole box and attached the tiff.


PS I was running this on the included Sample database but it does the same thing on my real one.


You got me. It works on my setup, and the error text doesn't provide me any real clues. You might need to contact the author.

_________________
Choose to chance the rapids.
Dare to dance the tide.


Thu Feb 25, 2010 11:28 am
Profile WWW
User avatar

Joined: Dec 29, 2005
Posts: 585
Location: Third byte on the right
Post Re: Cross reference report
Hmmm...
This probably is related to the XSLT tools that I used in Indigo Database Report.
The current version of IDR uses a new version of those tools that makes it compatible with Snow Leopard.

Maybe you could try the previous version that has the XSLT tools for Leopard.
Indigo Database Report 2.0b3

Please let me know if this works.

_________________
"I tawt I taw a puddy tat!" Tweety


Thu Feb 25, 2010 2:06 pm
Profile WWW

Joined: Feb 12, 2010
Posts: 24
Post Re: Cross reference report
macpro wrote:Hmmm...
This probably is related to the XSLT tools that I used in Indigo Database Report.
The current version of IDR uses a new version of those tools that makes it compatible with Snow Leopard.

Maybe you could try the previous version that has the XSLT tools for Leopard.
Indigo Database Report 2.0b3

Please let me know if this works.

Yes, it works with the 2.0b3 version. Very nice report, does just what I wanted

Thanks,

Bill Nash


Sat Feb 27, 2010 6:13 pm
Profile
User avatar

Joined: Apr 16, 2003
Posts: 392
Post Re: Cross reference report
macpro wrote:Hmmm...
This probably is related to the XSLT tools that I used in Indigo Database Report.
The current version of IDR uses a new version of those tools that makes it compatible with Snow Leopard.

Maybe you could try the previous version that has the XSLT tools for Leopard.
Indigo Database Report 2.0b3

Please let me know if this works.


Hey Paul, What would be the chances of getting AppleScript parsing added to the report? For example, a list of AppleScripts, embedded or otherwise which reference a particular device or variable would be extremely useful.

_________________
Choose to chance the rapids.
Dare to dance the tide.


Sat Feb 27, 2010 7:00 pm
Profile WWW
User avatar

Joined: Dec 29, 2005
Posts: 585
Location: Third byte on the right
Post Re: Cross reference report
I think it can be done for the embedded AppleScript code. IDR can see that in a readable format, so it should be possible to add some cross referencing there. But there can never be a 100% guarantee that all components will be found. Here's an example that would fail:

Code: Select all
set name to value of variable "myDevice"
turn on name


If the Indigo variable "myDevice" has the value "LivingRoom", the script will turn on the lights in the living room.
But IDR will not be able to make a cross reference to "LivingRoom".

For AppleScript files the answer is that it can't be done. IDR has no option of reading those scripts.

_________________
"I tawt I taw a puddy tat!" Tweety


Sat Feb 27, 2010 11:33 pm
Profile WWW
User avatar

Joined: Apr 16, 2003
Posts: 392
Post Re: Cross reference report
macpro wrote:I think it can be done for the embedded AppleScript code. IDR can see that in a readable format, so it should be possible to add some cross referencing there. But there can never be a 100% guarantee that all components will be found. Here's an example that would fail:

Code: Select all
set name to value of variable "myDevice"
turn on name


If the Indigo variable "myDevice" has the value "LivingRoom", the script will turn on the lights in the living room.
But IDR will not be able to make a cross reference to "LivingRoom".

For AppleScript files the answer is that it can't be done. IDR has no option of reading those scripts.


Thanks. Even the addition of best-guess parsing of embedded AppleScripts would be a welcome addition. I often find myself re-purposing an existing device. Getting a list of those internal Applescripts which reference it directly would be a huge help.

_________________
Choose to chance the rapids.
Dare to dance the tide.


Sun Feb 28, 2010 12:32 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 11 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.