Re: Tools palette showing?
Opie here; hide and show do what I need; I just want to hide it. But how, other than asking here, was I to discover the name of that stack? I poked all over including message-box asking the name of stack n from 1 to 10, which turned up a bunch of stuff but not "revTools". It seems it has an ID but not a number. Hmm. But Colin is most correct, and asking "visible" of window/stack returns true whether you can see it or not. Hmm. On Thu, 24 Jun 2010 16:15:54 -0400, Colin Holgate wrote: Hide/show stack "revTools" Cool that all such gadgets are stacks. It also reports as being a window, but in any case, the question was how to know if it's current;y showing, and not how you would show it. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Tools palette showing?
Is there a way to discover if the Tools palette is visible (in RevMedia)? I have a preOpenStack line to type "t' with commandKey to hide it when a stack launches (and launches Rev). But then if I open another stack with the same openStack routine, it toggles it back on. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Page Setup question (Mac)
On Tue, 22 Jun 2010 23:12:03 -0700, Richard Gaskin wrote: Emmett Gray wrote: Is there any way to specify landscape or portrait mode via scripting? Did you try Rev's dictionary? printPaperOrientation property, which takes these values: Duuh. Yes, I did look at "print", but didn't scroll down... Thanks. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Page Setup question (Mac)
Is there any way to specify landscape or portrait mode via scripting? HC remembered the page setup for a template. Rev (Media) doesn't remember anything about it when it quits, and seems to have only one mode possible for all stacks, not a setting for individual stacks. I need to print envelopes in portrait mode and all other stacks in landscape mode. I opened a couple of dictionaries in (Apple) Script Editor but didn't find anything there. My workaround for now is to have a global "lastPageSetup" which is checked and invokes "answer page setup" if I need to change it. At least that saves paper. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Skype dialing (was: Help with drill-down script)
This works with SkypeOut also, to call a phone number. Just replace "SkypeName" with the number (include the country code). When I first started using Skype years ago this didn't exist (or I didn't know about it) so I did it with AppleScript and QuicKeys. Much simpler now. On Tue, 22 Jun 2010 08:28:47 +0100, "Hugh Senior" wrote: Hi Peter, See the Skype html syntax options at http://www.skype.com/share/buttons/advanced.html Basically you do a launchURL "skype:SkypeName?chat". It's very cool, and I have it in my own PhotoContacts utility. /H Peter wrote: [big snip] BTW, how do you do the skype dialing? I'm interested in that. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Help with drill-down script
Sorry for the long post. I've now got the last of my currently-in-use HC stacks running in Rev, so I'm finally retiring HC/Sheepshaver. This last stack was huge, a labor of love for 20 years. It's an address book whose feature set has not been matched by a commercial application. Anyway, there's one feature: the first card is an index of all the cards in the stack. In HC, all you need to do is start typing and as you add letters, the selected line changes to reflect what you've typed. When you get to what you want, you hit return and that takes you to the respective card. Anyway, it's not working in Rev. What happens is, it selects the first line with the first letter you type, but stalls there. Then, if you hit return, it does nothing, just sits there. And if you wait and start over, it doesn't respond. to that either, the original selection remains. You have to clear that selection to get it to start over. I don' have any idea what to do. The relevant field properties in Rev are shared text, lock text, vertical scroll bar, list behavior. Here's the HC script: on keyDown theKey -- this is for selecting & scrolling the index fields & the notes field & the inform field global keyBuff, keyTime, indexLine, keywait, activeField --there are both white and yellow pages --White pages is "Index", yellow pages is "Yndex" if theKey is in "abcdefghijklmnopqrstuvwxyz" then --user typed something to respond to if the selectedField is empty then -- no cursor in a field, otherwise enter text in a field if the visible of fld activeField is true then --make sure we're looking at the proper field if the visible of the message is false then -- so it's available when needed put activeField into theFld select line 0 of fld theFld put 0 into item 1 of indexLine put the ticks into theTime if theTime - keyTime < keyWait then put theKey after keyBuff --keyWait is how long to wait before discarding the buffer and starting over else put theKey into keyBuff put theTime into keyTime get findIndexLetter(keyBuff, theFld) if it = 0 then put "abcdefghijklmnopqrstuvwxyzz" into theAlph -- extra z because looking for next char put offset(theKey,theAlph) into numTries repeat with x = numTries + 1 to number of chars of theAlph get findIndexLetter((char numTries - x of theAlph), theFld) if it > 0 then exit repeat end if end repeat if it = 0 then repeat with x = -1 to numTries - 1 get findIndexLetter((char numTries - x of theAlph), theFld) if it > 0 then exit repeat end if end repeat end if end if set scroll of fld theFld to it * (textHeight of fld theFld) if number of lines of fld theFld - it < 22 then select line it of fld theFld put it into item 1 of indexLine put theFld into item 2 of indexLine end if keyDown numToChar(31) else pass keyDown end if else pass keyDown end if else pass keyDown end if else -- not an alpha character get charToNum(theKey) if (space & it & space) is not in " 11 12 30 31 " then -- pageup & pagedown, up & down arrows if it = 1 then go card 1 --home key else pass keyDown -- not trapped key so get out else --trapped key, proceed if the number of this card = 1 then if the selectedField is not empty then pass keyDown --conditions not met, get out else if the visible of fld "inform" is false then --another field that might be showing instead if it = 11 or it = 30 then if the optionKey is not down and it = 30 then grabLine -1, activeField else selectNot set scroll of fld activeField to scroll of fld activeField - 252 end if else if it = 12 or it = 31 then if the optionKey is not down and it = 31 then grabLine 1, activeField else selectNot set scroll of fld activeField to scroll of fld activeField + 252 end if end if else --inform field is showing, not the index so do something else, not relevant to this post if it = 11 then drag from 460,52 to 460,51-- vals for "notes", change to scroll method else drag from 460,213 to 460,214 end if end if end if else -- not card 1 -- the index field is normally hidden except on card 1 but can be show on any card if the selectedField is not empty then -- 13 is lookup
Re: How to launch an application (like "word" from a stack?
On Thu, 17 Jun 2010 13:16:49 +0200, "Andre.Bisseret" wrote asking this. An elegant way is to use AppleScript, which avoids having to know the path: do "tell application " & quote & "Microsoft Word" & quote & " to activate" as AppleScript opens it and makes it frontmost, or do "tell application " & quote & "Microsoft Word" & quote & " to run" as AppleScript opens it an keeps it in the background. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: use-revolution Digest, Vol 81, Issue 30
At 10:01 PM -0500 6/14/10, Peter Brigham MD wrote: > I tried this: > set the mainStack of this stack to stack "Foo" > and I got the following: > Message execution error: > Error description: Chunk: source is not a container the syntax for setting the mainstack is : set the mainStack of this stack to "Foo" That's why you got the error message. Aahh... duh. Thanks. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Using a plugin
Jaque wrote: Emmett Gray wrote: > I've R'dTFM but I still don't know how to do this. I'm using RevMedia, if that matters. I've downloaded Rinaldi's auto-save plugin and want to > use it in a particular stack. To use it in a stack, you'll need to make it a substack of your own mainstack. In that case the visibility can be set by your own scripts, and toggled by a button or menu item you create (use "set the visible of stack to ".) The plugin wasn't really meant to be that sort of tool though, it's an IDE addition. I tried this: set the mainStack of this stack to stack "Foo" and I got the following: Message execution error: Error description: Chunk: source is not a container However, I was able to bash through to success: Stack Inspector was not available (grayed out), but I was able to click on the card with the edit tool and make the Object Inspector available. I was then able to inspect the stack via the Inspect submenu and choose my target stack as its mainStack from the mainstack pulldown menu (with my target stack open). Rev complained that stacks named with "rev" as the first letters of the name are reserved for the IDE so I renamed the stack. After the renaming, the stack inspector is no longer grayed out when the stack is launched, but trying to set the mainStack property by script still produces the error message. But auto-save works. Maybe this workaround will be useful to other RevMedia users wanting to use plugins as substacks. But in the end, I've decided to use the closeField message passed to my stack script to trigger a save instead of a time interval, so I removed the substack. I'm not sorry for the learning experience, however. Thanks to all who helped. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Long URL in a field
At 4:37 AM -0500 6/14/10, Sarah Reichelt wrote: No, wrapping on Rev only works with white space. So I wrote a routine to space out a long URL to fit a specific field: Thanks to all who responded, but a) a URL may be long because it has multiple "&foo=bar" elements rather than slashes, and then b) whether I'm grabbing them by scripting or selecting manually, any alteration is counterproductive. I'll live with them spilling off out of sight. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Long URL in a field
In the HC version of a stack I've converted, I have a "notes" text field. The field has a vertical scroll bar, but not a horizontal one (and that's what I want). In HC, a long URL will wrap so you can see the whole thing on multiple lines. In Rev, it doesn't wrap so you can't see it all (although you can still select it by dragging to the right). Can this behavior be changed to be like in HC (i.e. force a line with no spaces to wrap)? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Using a plugin
I've R'dTFM but I still don't know how to do this. I'm using RevMedia, if that matters. I've downloaded Rinaldi's auto-save plugin and want to use it in a particular stack. Where should I put it/load it (so that it will be always available with that stack if it moves to another machine)? How do I invoke it so that it's invisible? If it's invisible, how do I set the interval? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Help with bg graphic
Ahhh Thanks everyone who helped. Little by little, Rev secrets are revealed. At 12:00 PM -0500 6/11/10, Klaus wrote: > I tried this. What is happening now is that the image ends up covering up and hiding all the other objects in the background. Sending to back doesn't change this. I don't get it yet, sorry to say. Thursday, June 10, 2010, 9:43:42 AM, you wrote: up when I try to bring it in as "new control" - like it ends up only on the current card. Easiest way to do this is from the menubar: Select the background group Click Edit group (starts the edit process) Import as control (imports the image into the background) Click Edit group (ends the edit process) -- -Mark Wieder mwie...@ahsoftware.net Did you resize the image? Sounds like the image resizes to its orginal dimensions after setting the filename or importing it (again). In the "Inspector" palette -> "Size & position" check "Lock size and position" (lockloc) after you set the correct size of that image object. That should fix it, if my presumption is correct ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: use-revolution Digest, Vol 81, Issue 21
I tried this. What is happening now is that the image ends up covering up and hiding all the other objects in the background. Sending to back doesn't change this. I don't get it yet, sorry to say. Thursday, June 10, 2010, 9:43:42 AM, you wrote: up when I try to bring it in as "new control" - like it ends up only on the current card. Easiest way to do this is from the menubar: Select the background group Click Edit group (starts the edit process) Import as control (imports the image into the background) Click Edit group (ends the edit process) -- -Mark Wieder mwie...@ahsoftware.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Help with bg graphic
This is driving me nuts. I've got a HC stack (the last one I'm still using - all others already imported into Rev) which I'm trying to convert. I'm resizing it and and I've edited the bg graphic in Photoshop. I've saved it as a .png file, and can replace the original with it by changing the reference to it in the object inspector to an external file. But I'd like to have it in the stack and not external. Every attempt to do this results in something getting screwed up - either the graphic becomes a solid gray field (which exists as another background in the stack) or else something else gets screwed up when I try to bring it in as "new control" - like it ends up only on the current card. If I import it into the image library, it sticks itself on top of the current card. If I delete that image, it then disappears from the library too. If I select the bogus gray background and try to edit that externally by selecting the pencil tool in the inspector, nothing happens at all (but that works OK for card images). What am I doing wrong? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to use Applescript to Run RunRev
On Wed, 3 Feb 2010 22:07:46 +0100, zryip theSlug wrote: 2010/2/3 Emmett Gray : How do you tell Rev to do something useful via applescript? Simply specify the stack you need as follows: tell application "Revolution" to do script "create card to stack \"TheSlugLab\"" Well this gave me confidence that this should be easy. So I tried doing something else trivial - just navigating to a card. Bingo. So then I R'dTFM. There's a tip at the bottom of the dictionary page on "create card" that I missed. It says you need to do this: set the defaultStack to "My Stack" create card and lo and behold, it worked as did everything else I added to my script. Yay. And thanks for the tip about using backslashes to escape the quotes instead of the cumbersome & quote & syntax. If Rev isn't already running, I couldn't get it to open the stack I want to use. So I used the Finder. tell application "Finder" if (exists process "Revolution") is false then tell application "Revolution Media" to activate delay 2 -- otherwise the freeware nag window stays in front end if open alias "path:to:myStack" end tell tell application "Revolution Media" do script "go stack \"myStack\" set the defaultStack to \"myStack\" create card" -- etc. etc. end tell ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: use-revolution Digest, Vol 77, Issue 7
How do you tell Rev to do something useful via applescript? I tried tell application "Revolution Media" activate --would like ideally first to: do script "go stack " & quote & "Foo" & quote & " in a new window" --but I couldn't even get the next command to work if the stack was already open and frontmost do script "create card" end tell Nothing happens other than activation. While I'm asking, the next things I would want to have happen are to put the clipboard into a field and send a mouseUp to a button. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Keyboard focus on opening a card
The manual states: "When a card is opened, Revolution automatically focuses the first object on the card that is capable of receiving the keyboard focus." I don't want this to happen, but everything I have tried to stop it from happening (such as setting traversalOn to false or turning off autoHilite or whatever) means that fields I want to be able to edit text in don't accept a click (so I can't use a mouseUp in their script to change the traversalOn property because the message is not sent). How can I do this (i.e. no focus on open card, but focus with click or tab)? This worked as desired in HC. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Help with audio
Opie here. I wrote: file ... sounds fine in Rev if I access it instead of the imported one. I.e., playing the file in Rev by filepath results in the correct sound. So what's going on? Is QT actually doing the playing of external audio even though I'm not calling up the player, or is it the OS's native audio management? BTW the sound is not compressed, it's a standard mono WAV file, a sculptured click sampled from a CueLine ProCue 1M1. I converted it to 16 bit and reimported into the stack and it's OK now. Just to be sure, I reimported the 24-bit version and got the same original result. So it seems Rev chokes on 24bit audio. Try using the player and quicktime and the file as an external source (set the filename of player 1 to ) as opposed to being imbedded. Quicktime should properly handle 24 bit audio, but not sure about the native play component. If you need to imbed the sounds, then convert and dither the 24 bit files down to 16 bits with the same sample rate. Peak, Sound Studio, Audacity, quicktime should do this. Monkey Tools can do this in batches. If indeed the internal play command is 16 bit only we should know that. Thanks for reporting this. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/12/28 Emmett Gray I've converted another HC stack, a multi-timer which includes a metronome function. I'm having an issue with the audio: the "Click.wev" imported audioClip sounds awful and very often sounds different or has no sound at > all. The original is a 48k 24-bit file and sounds fine in Rev if I access it > instead of the imported one. I imported it using the import command. Do I need to downsample or change the bit rate or do something else before > importing to make it sound OK in Rev? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Help with audio
I've converted another HC stack, a multi-timer which includes a metronome function. I'm having an issue with the audio: the "Click.wev" imported audioClip sounds awful and very often sounds different or has no sound at all. The original is a 48k 24-bit file and sounds fine in Rev if I access it instead of the imported one. I imported it using the import command. Do I need to downsample or change the bit rate or do something else before importing to make it sound OK in Rev? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: HC convert: help with text as graphic or rotated text
Thanks, Mark, your "attempt" works. Here's my functioning handler: on doSpine -- called on closing the field "Spine Text" and again when printing, to be safe set tool to pointer --to delete existing spine graphic click at 49,166 delete click at 455,166 delete set tool to browse select empty --to be sure source field is not selected, otherwise blue hilite border is included in snapshot import snapshot from field "Spine Text" set the angle of the last image to 90 move the last image to 49,166 in 1 ticks copy the last image paste set the angle of the last image to 270 move the last image to 455,166 in 1 ticks end doSpine The rotated text is a bit fuzzy but is perfectly adequate for the purpose. I'm very happy to be aboard this list and get such good and speedy help. RunRev is beginning to be fun to use. I bought a copy way way back when Rev had a special offer for HC users, paid good money for the package, gave up in frustration. Just last week I decided to have another go with the free version since SheepShaver has been getting on my nerves lately. In fact it crashed the whole machine last week... On Thu, 24 Dec 2009 09:44:14 -0800, Mark Wieder wrote: If there is a way to rotate text in Rev I would have an easy solution. I didn't find it, nor can I find a text as graphic tool in Rev to do it the HC way... TIA for help. Here's my attempt at it - this code in a button script will create a graphic from the text, then rotate it 90 degrees: on mouseUp pMouseBtnNo import snapshot from field "fldTextToRotate" set the angle of the last image to 90 end mouseUp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
HC convert: help with text as graphic or rotated text
I'm new to the list and this is my first post. I've done my first successful stack conversion from Hypercard so I'm up to speed on the basics. My next conversion project involves a custom CD C-card printer, which converts a CD premaster text file (with pq codes etc.) into what you want to see on the back of a CD jewel box sent for review or duplication. The HC stack copies the album title text, which appears in a field at the top of the back panel, and deletes the existing card picture, hides all fields and buttons, types that text as a graphic, draws a selection box around it and rotates it 90 degrees and positions it to form one spine of the CD,, and then duplicates and rotates 180 degrees and positions it for the other spine, then shows all fields and buttons again. If there is a way to rotate text in Rev I would have an easy solution. I didn't find it, nor can I find a text as graphic tool in Rev to do it the HC way... TIA for help. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution