#!/bin/sh # MetaCard 2.4 stack # The following is not ASCII text, # so now would be a good time to q out of more exec mc $0 "$@" Delete Prop Patch 2 x, "Anti Delete Custom Property Patch U Lucida Grande U Lucida Grande W Lucida Grande U Georgia U Georgia cREVGeneral bookmarks handlerList tempScript prevHandler script Pon preOpenStack set the loc of this stack to the screenloc set the style of this stack to modeless end preOpenStack --------------------------------- on openStack switch case the script of btn "Delete Key" of cd "revCustomProperties" of stack "revTemplatePalette" = the script of btn "NewScript" answer info "This patch has been already applied." as sheet disable btn "Apply Patch" break default enable btn "Apply Patch" end switch end openStack , cREVGeneral scriptChecksum 쫑Nm%Ƒh bookmarks handlerList preOpenStack openStackscriptSelection char 398 to 397prevHandler openStacktempScript script
on preOpenStack
set the loc of this stack to the screenloc
set the style of this stack to modeless
end preOpenStack
---------------------------------
on openStack
switch
case the script of btn "Delete Key" of cd "revCustomProperties" of stack "revTemplatePalette" = the script of btn "NewScript"
answer info "This patch has been already applied." as sheet
disable btn "Apply Patch"
break
default
enable btn "Apply Patch"
end switch
end openStack
NewScript Epon mouseUp set the caseSensitive to true put the hilitedLines of fld "customkeys" into tLineNo put line tLineNo of fld "customkeys" into tName if the number of words in tName is 0 then exit mouseUp if the optionKey is not down then answer warning "Really delete property" && quote & tname & quote & "?" with "Cancel" or "Delete" if it is "Cancel" then exit mouseUp end if put the label of btn "customPropertySet" into tSet put revPaletteObjects() into tObject set the wholeMatches to true if tSet is "customKeys" then put the customKeys of tObject into tKeys delete line lineOffset(tName,tKeys) of tKeys set the customKeys of tObject to tKeys else put the customKeys[tSet] of tObject into tKeys delete line lineOffset(tName,tKeys) of tKeys set the customKeys[tSet] of tObject to tKeys end if put revCustomPropertyFilter(tKeys) into tKeys if charToNum(last char of tKeys) is 10 then delete last char of tKeys sort lines of tKeys put tKeys into fld "customkeys" subtract 1 from tLineNo set the hilitedLines of fld "customkeys" to tLineNo send "ShowCustomKeyValue" to fld "customkeys" end mouseUp ----------- -- Patched version So smart Software 2005 ^ R cREVGeneral scriptChecksum ǰ݃$ bookmarks revUniqueID 1109925894429handlerList mouseUpscriptSelection char 1183 to 1182prevHandler arrowKeytempScript scripton mouseUp
set the caseSensitive to true
put the hilitedLines of fld "customkeys" into tLineNo
put line tLineNo of fld "customkeys" into tName
if the number of words in tName is 0 then exit mouseUp
if the optionKey is not down then
answer warning "Really delete property" && quote & tname & quote & "?" with "Cancel" or "Delete"
if it is "Cancel" then exit mouseUp
end if
put the label of btn "customPropertySet" into tSet
put revPaletteObjects() into tObject
set the wholeMatches to true
if tSet is "customKeys" then
put the customKeys of tObject into tKeys
delete line lineOffset(tName,tKeys) of tKeys
set the customKeys of tObject to tKeys
else
put the customKeys[tSet] of tObject into tKeys
delete line lineOffset(tName,tKeys) of tKeys
set the customKeys[tSet] of tObject to tKeys
end if
put revCustomPropertyFilter(tKeys) into tKeys
if charToNum(last char of tKeys) is 10 then delete last char of tKeys
sort lines of tKeys
put tKeys into fld "customkeys"
subtract 1 from tLineNo
set the hilitedLines of fld "customkeys" to tLineNo
send "ShowCustomKeyValue" to fld "customkeys"
end mouseUp
-----------
-- Patched version So smart Software 2005
Apply Patch Ep)on mouseUp local tCurPath,tSavePath,tFileType ----- set the script of btn "Delete Key" of cd "revCustomProperties" of stack "revTemplatePalette" to the script of btn "NewScript" save stack "revTemplatePalette" disable me answer info "The patch has been applied." as sheet end mouseUp d cREVGeneral scriptChecksum _yDʴ4+j_revUniqueID 1109926194716 bookmarks handlerList mouseUptempScript prevHandler arrowKeyscriptSelection char 284 to 283script Non mouseUp
local tCurPath,tSavePath,tFileType
-----
set the script of btn "Delete Key" of cd "revCustomProperties" of stack "revTemplatePalette" to the script of btn "NewScript"
save stack "revTemplatePalette"
disable me
answer info "The patch has been applied." as sheet
end mouseUp
Info ` (| cREVGeneral bookmarks revUniqueID 1109926471772handlerList prevHandler tempScript script ~In the properties inspector, when you select a custom property and click on the trash button, a confirmation dialog shows up. @ @ @ 5 @ P @ \ ! LYou can click on the "Cancel" button but the custom property is deleted :-( @ K Bugzilla 3251 on 12/02/2005 @ =This patch corrects this tedious behaviour due to a typo :-) As usual, the use of this software acknowledges that you hereby release me from any liability for any damages, whether direct or indirect and bla and bla and bla But here it is :-) @ SSS.png Hon mouseDown revGoUrl "http://www.sosmartsoftware.com" end mouseDown " -PNG IHDR " . pHYs .# .#x?v 9iCCPPhotoshop ICC profile xڝwTTϽwz0z.0. Qf Ml@DEHb!(`HPb0dFJ|yyǽgs{. $O./ 'z8WGб x 0Y驾A@$/7z HeOOҬT _lN:K"N3"$F/JPrb[䥟}Qd[Sl1x{#bG\NoX3I[ql2 $8xtr p/8pCfq.Knjm͠{r28?.)ɩL^6 g,qm"[Z[Z~Q7%" 3R `̊j[~ : w! $E}kyhyRm333: }=#vʉe tqX)I)B>== <8Xȉ9