![]() ![]() Set noMsgShow to my badFileMsg(wpf, wpfPath, folderProcess, noMsgShow) If name of wpf is not in noProcessList then If fileKind does not contain "WordPerfect" then If fileKind does not contain "Word Perfect fics" then If (versionByte is «data rdat00») then - WP5.xĮlse - WPDOS 6+ and miscellaneous others If (versionByte is «data rdat00») or (versionByte is «data rdat02») or (versionByte is «data rdat03») or (versionByte is «data rdat04») or (versionByte is «data rdat0A») or (versionByte is «data rdat2C») then If (versionByte is «data rdat02») then - Mac WP 2.1 ![]() If (fileTypeByte is «data rdat2C») then - WPMac if not fileTypeByte is «data rdat16» then - not WP Graphic Set versionByte to (read wpf from 11 for 1 as data) Set fileTypeByte to (read wpf from 10 for 1 as data) Set hasHeader to ((read wpf for 4 as data) is «data rdatFF575043») The code is incompetent because I don’t know how to write anything better, unfortunately, but it seems to work. It’s possible that all you need is the string that begins com.agileTortoise, etc, and not any hex string. ![]() The only line you really need is the one that runs a shell script with xattr. Here is the routine I use, which is far more elaborate than you need, because it first tests the file to determine which version of WordPerfect created the file so that it can apply the correct attribute, but you’ll get the idea. Instead, for a script that I use to add extended attributes to old WordPerfect files, I used the hex string of the text of the attribute that I found in other files that already had the correct attribute. ![]() I’ve never found a straightforward method. I’ve been Googling and so far haven’t found a straightforward way to write an xattr value. My default text editor is BBEdit, and I’ve obviously set the above file to Drafts. (Not a file type / extension – although I’d like to learn how to do that too.) Artis Leon Ivey Jr.Does anyone know how to script changing the default application for a specific file?.01:09:15 Michael-GC-One Device to Charge them All.00:49:02 Darren-Backing Up iCloud Photos.Ladder’s smart algorithms get you approval answers in just a few minutes, with great rates, to boot. Term Life insurance doesn’t need to be time-consuming or difficult. 00:46:06 SPONSOR: Sun Basket is offering $35 off your order when you visit /MGG and use code MGG at checkout.00:35:21 Stephen- Activation Lock Security.00:29:44 Wolfgang- Disable SIP to Delete Files.00:25:49 Patrick-FileVault Prevents 3rd Party Bluetooth at Boot.00:22:11 SPONSOR: Linode – Get started today with $100 in free credit for Mac Geek Gab listeners at /mgg.Check out their new Envoy Pro FX, the Fastest, Most Compatible Waterproof, And Ultra Rugged Drive Available. 00:20:36 SPONSOR: Other World Computing at.00:16:44 John-SPAM-Put Junk in the Favorites Bar.00:14:22 David-SPAM-The Waterfall Workflow.00:05:55 Craig-QT-Removing Custom Icons.00:02:13 Peter-QT-Drag and Drop with Command Tab.Show Notes Chapters/Timestamps/Stuff mentioned: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |