FileManagerLib, RegexAndStuffLib updates

I’ve released a couple of upgrades. FileManagerLib 2.3.2 now has commands for dealing with date properties, while RegexAndStuffLib 1.0.6 accepts lists of strings for its regex change and regex batch commands.

Download them here:

https://www.macosxautomation.com/applescript/apps/Script_Libs.html

Hey Shane

I’m having trouble connecting to your site? Dont want to spoil your Friday night and it might just be my telstra cable connection…

Your connection, I think. Fine here on Optus cable.

No problem here, on Friday MORNING!

Wishlist for FileManagerLib:

return file size for a given file reference

Thanks Shane, these libraries are great. Very useful.

I’m considering it. The issue is that it has to be calculated for anything other than flat files, which makes it potentially a bit slow. I suppose I could use the Finder approach with big items, and just make up a number :wink:.

I think I hit a bug in Filemanger.

Nevermind. It was a bug of my own

–> Filemanagerlib v. 2.3.4
–> Script Debugger 7.0.11 (7A110)
–> Mac OS 10.11.6 (15G22010)

I cant get a simple copy command to run get an error saying the file doesnt exist.

use theLib : script "FileManagerLib" version "2.3.2"
set rawFile to "~/Pictures/66/Capture/60161665_1/60161665_1-0002.CR2"
--added for testing only
set theFileOb to (parse object rawFile)
set rawPath to parent_folder_path of theFileOb & "/" & full_name of theFileOb as string
set destFolder to "/Users/riallen/Pictures/66/Capture/"
set articleNumber to "theNewName"
set theCopyCR2 to copy object rawPath new name (articleNumber & "-0000.CR2") as string to folder (quoted form of destFolder) as string

I can parse the object but cant copy the object using the rawPath or rawFile variables?

I’m not sure why you’re going the circuitous route to build the path, but quoted form is only used with do shell script. Take that out and try again.

Thanks Shane I was running a shell in another part of the script and then copy pasted into this section :grimacing: