Snagit Mac: FTP Custom Code Variables

  • 1
  • Question
  • Updated 2 years ago
According to the changelog from the last update (4.1.1 to 4.1.2) of Snagit Mac there are were more FTP Custom Code Variables added ("Added more FTP custom code variables"). From my customer code in 4.1.1 i was using following variables: [filename], [filehash] and [fileext]. They are now broken reps. they have changed:

4.1.1 -> 4.1.2

[filename] -> [date]
[filehash] -> [filehash] 
[fileext] -> NOT EXISTING ANYMORE

My Question is what are actual FTP custom code variables and how can i manage to configure my needed format: [date]_[hash].[fileext] ? Where are these variables documented ?

P.S. Breaking backword compability in and patch-update (4.1.X) is everything else than professional....
Photo of dv

dv

  • 9 Posts
  • 1 Reply Like
  • frustrated

Posted 2 years ago

  • 1
Photo of Luke Griffioen

Luke Griffioen, Employee

  • 711 Posts
  • 175 Reply Likes
Hi,

Sorry about this. [filename] should still be working, although most captures have the date as the filename, so that's probably what you are seeing. As for [fileext], it looks like that is now included in the [filename].

The purpose of FTP custom code is to allow the clipboard contents to match any changes that might happen on the FTP server after uploading a file.

What are you aiming to accomplish with this custom code? It sounds like what you're doing might be a little different than what we have.
Photo of dv

dv

  • 9 Posts
  • 1 Reply Like
Hi Luke,

Please check my initial Post (Idea). I requested some features, which were implemented in 4.1.1. Aparrantly and unfortunatelly this features were removed without announcement and by violating the semantic versioning concept.

So what i want to achieve is that the file is uploaded and copied to the clipboard as following: 2017-02-13_11-29-05_118fef34522eebaba7ef4ee38af7e746.png

Can you please tell me how this can be achieved in the version 4.1.2 ?

Kind Regards
Photo of dv

dv

  • 9 Posts
  • 1 Reply Like
That would be greate! Can you already time the solution ? 1 Week/1 Month/3 Month ?
Photo of Luke Griffioen

Luke Griffioen, Employee

  • 711 Posts
  • 175 Reply Likes
We can't promise anything, but we will let you know when a solution is available.
(Edited)
Photo of dv

dv

  • 9 Posts
  • 1 Reply Like
ok, thanks for the Info. Hope hearing soon from you..
Photo of dv

dv

  • 9 Posts
  • 1 Reply Like
Short question: in order to develop an workaround i should need the algorithm you used to create this hash in the filename. Can you please tell me how this filehash is generated and out of what ?
Photo of Luke Griffioen

Luke Griffioen, Employee

  • 711 Posts
  • 175 Reply Likes
Hi,

This uses an md5 hash of the filename. (filename includes file extension)