Page 1 of 1

Devolution Custom Script Buttons

Posted: Wed Sep 14, 2016 11:03 pm
by bhall2001
I'm curious what you might be using for your custom script buttons for in Devolution. I'll share what I'm doing with 3 of the 4 buttons in my setup.

I use these buttons to copy object references to the clipboard. This is great especially getting references for front and back scripts (among other things). Here's what I have.

Custom 1 Name: ObjID->Clpbd
Script:

Code: Select all

on mouseUp
   if the selectedObject is "" then
      answer error "Nothing Selected..."
   else
      set the clipboardData to the id of the selectedObject
   end if
end mouseUp
Custom 2 Name: ShtRef->Clpbd
Script:

Code: Select all

on mouseUp
   if the selectedObject is "" then
      answer error "Nothing Selected..."
   else
      set the clipboardData to the name of the selectedObject
   end if
end mouseUp
Custom 3 Name: LngRef->Clpbd
Script:

Code: Select all

on mouseUp
   if the selectedObject is "" then
      answer error "Nothing Selected..."
   else
      set the clipboardData to the long name of the selectedObject
   end if
end mouseUp
I'll share my 4th script button and another modification I've made to the Tool pending responses to this post.

Kudos to Richard Gaskin for such a great utility that's totally changed the way I work in the IDE.

Bob Hall

Re: Devolution Custom Script Buttons

Posted: Sun Oct 02, 2016 6:16 pm
by mwieder
Here's one I use frequently:

Name: gRevDevelopment
Script:

Code: Select all

on mouseUp
   global gRevDevelopment
   put not gRevDevelopment into gRevDevelopment
   if gRevDevelopment then
      set the hilite of me to true
   else
      set the hilite of me to false
   end if
end mouseUp

Re: Devolution Custom Script Buttons

Posted: Wed Oct 12, 2016 7:20 pm
by FourthWorld
bhall2001 wrote:I'm curious what you might be using for your custom script buttons for in Devolution.
The one I use most often could just as well sit in a backscript, but I frequently just need to path to a file to do something with so I have:

Code: Select all

on mouseUp
   answer file "Select a file:"
   if it is empty then exit to top
   set the clipboardData["text"] to it
end mouseUp
Kudos to Richard Gaskin for such a great utility that's totally changed the way I work in the IDE.
Very glad you're enjoying it, Bob. For me the quick access to the essential tools, and "only when you need 'em" access to everything else has freed up my development workflow so that it feels more like I'm running an IDE inside my app than squeezing my app inside an IDE.