|
The Tip
|
|
One Button Publishing settings are saved in the registry. The first time you use OBP on your Authorware file, Authorware will create a GUID (Globally Unique Identifier) for your Authorware file. The GUID is the way that Authorware looks up the correct OBP settings for a particular file.
When you do a "Save As" with your Authorware 6 file, both files will have the same GUID. This makes it possible for you to do incremental backups and keep the same OBP settings.
However, quite often when I do a Save As, I am not backing up my file at all. Instead, I am starting from a template file, and I want Authorware to consider them to be two different files, with different settings. So how do you break the connection?
One way is to click the "Reset" button in OBP. This will promptly set OBP settings for all files with the same GUID to the default. Not very fun. But, it does have the side effect of a new GUID for the file that you were in when you clicked Reset.
Another way is to click the "Export" button in the original file, then click "Reset" in the copy. Then double-click the .reg file generated by the export to restore the settings of the original file.
Yet another way is to copy all the icons in the template file into a new file. The problem with that is that you then have to go in and modify the file properties to match the original. One way around that is to include a calculation as the first icon in the file that sets the file properties the way you want them. The first time you run the file viola! the file is good as new. In fact, it is new.
The "bot" calc I use would be titled something like Set Up File Properties--My New File. Its contents look like this:
--this will only execute in a file
--that has never been saved
if FileName="[Untitled]" then
--parse the title out of the calc title
Temp[#title] := GetLine(IconTitle, 3, 3, "-")
--set up background color, dimensions of presentation
Temp[#color] := RGB(239, 240, 222)
Temp[#size] := Point(800, 600)
--now start setting stuff
SetFileProperty(#awBackgroundColor, ¬ Temp[#color])
SetFileProperty(#awTitleBar, FALSE)
SetFileProperty(#awTaskbar, FALSE)
SetFileProperty(#awCenterOnScreen, TRUE)
SetFileProperty(#awMenuBar, FALSE)
--save out with the name set from the calc title
SaveFile("C:Documents and Settings"¬ ^"All UsersDesktopWorkFMS"¬ ^Temp[#title]^".a6p")
SetFileProperty(#awWindowSize, ¬ [#type: #fixed, #size: Temp[#size]])
end if
|
|
Did you know? |
|
You can use keyboard shortcuts in the Control Panel window. How many times have you scrolled up endlessly trying to fine the fifth icon in a complex piece? Ctrl+Home will take you to the top of the window. Want to copy all the text in the window? Start with your cursor at the top of the window, press Ctrl+Shift+End. Right click anywhere in the selected block of text and select "Copy" from the popup menu. Now you can paste it into whatever editing program you want to use.
|
|
|
Blog
|
|
The company I work for raised my Health Insurance contribution by nearly 100% today. If you happen to be hiring right now, please let me know. You can e.mail me at ablank@ev1.net.
Now for something more pleasant. My oldest dog, Nada, is almost 12. You'd think that this venerable oldster would be a model of canine decorum. Well, I lost track of him for almost an hour. As he quite frequently lies quietly in a corner, I did not think much about it...until I opened the door into my bedroom.
My bedroom is "cat territory." As such, the dogs are seldom allowed in there. So it's not dog proof. All trash cans are at floor level and unsecured.
Yes, you guessed it. My wonderful and dignified oldster had shredded the contents of the trash cans, and the entire floor is covered with tiny bits of paper and less mentionable objects. Wait, I said this was going to be pleasant, didn't I?
Oops.
|
|