Page 1 of 1

@newbies: Quickly copy the file size to the clipboard

Posted: 05 Jul 2010 10:47
by admin
Open the Customize File Associations dialog from the Open With button, and enter this line as a new Portable File Association:

Code: Select all

|"Copy file size in bytes" *>::copytext <cursize>
CustomizeFileAssociations.png
Now you can quickly copy the byte count of the selected (focused) file to the clipboard using the Open With button. I use this function many times every day.

Only available in the professional edition.

Re: @newbies: Quickly copy the file size to the clipboard

Posted: 06 Jul 2010 07:28
by ogroeger
@newbies: If you're getting "Failed to open ::copytext <cursize>" you must enable "Quick scripting" in the configuration (Configuration->Advanced)

Re: @newbies: Quickly copy the file size to the clipboard

Posted: 06 Jul 2010 09:08
by admin
ogroeger wrote:@newbies: If you're getting "Failed to open ::copytext <cursize>" you must enable "Quick scripting" in the configuration (Configuration->Advanced)
Good point. Actually I wonder whether I should remove this setting! Has anybody ever turned this off??? I don't think so...

Re: @newbies: Quickly copy the file size to the clipboard

Posted: 06 Jul 2010 13:39
by nony
Wonder why it fails for system files eg pagefile.sys

::echo <cursize> returns zero.

Re: @newbies: Quickly copy the file size to the clipboard

Posted: 06 Jul 2010 13:51
by admin
nony wrote:Wonder why it fails for system files eg pagefile.sys

::echo <cursize> returns zero.
Confirmed, fixed, thanks!

Re: @newbies: Quickly copy the file size to the clipboard

Posted: 06 Jul 2010 19:23
by ogroeger
admin wrote:
ogroeger wrote:@newbies: If you're getting "Failed to open ::copytext <cursize>" you must enable "Quick scripting" in the configuration (Configuration->Advanced)
Good point. Actually I wonder whether I should remove this setting! Has anybody ever turned this off??? I don't think so...
Actually i asked myself why i can disable this. Do i have any advantage by disabling, e.g. saving some RAM?

Re: @newbies: Quickly copy the file size to the clipboard

Posted: 06 Jul 2010 19:26
by admin
ogroeger wrote:
admin wrote:
ogroeger wrote:@newbies: If you're getting "Failed to open ::copytext <cursize>" you must enable "Quick scripting" in the configuration (Configuration->Advanced)
Good point. Actually I wonder whether I should remove this setting! Has anybody ever turned this off??? I don't think so...
Actually i asked myself why i can disable this. Do i have any advantage by disabling, e.g. saving some RAM?
The only reason was safety (scripting can be dangerous).

Re: @newbies: Quickly copy the file size to the clipboard

Posted: 06 Jul 2010 19:33
by ogroeger
+1 for removing.