Javascript time limit(trial)

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

xbytor
Posts: 22
Joined: Thu Jan 01, 1970 12:00 am

Re: Javascript time limit(trial)

Post by xbytor »

luis miguel wrote:Can you overcome this problem?
The only way to do this is to have a server for managing serial numbers and have crypto on both sides of the pipe. I did an implementation years ago and it was a pain in the ass to get right. I think I was using Flex at the time which hasn't been supported in this decade.

My best advice is to ignore the possibility that someone fiddles with the computer's date.
User avatar
Jaroslav Bereza
Posts: 38
Joined: Tue Dec 27, 2016 7:22 pm

Re: Javascript time limit(trial)

Post by Jaroslav Bereza »

You can put custom descriptor into Photoshop after each start. It persists until you explicitly delete them.

Application.putCustomOptions (key: string , customObject: ActionDescriptor , persistent: Boolean )
Application.eraseCustomOptions (key: string )
Application.getCustomOptions (key: string ): ActionDescriptor


I have no Idea if you can easy get/remove all custom options if you don't know key.

You also can get recent files list... there are paths to the files and you can get modified time of these files. So you can have suspicion if 5 from 20 files are from future :-D

It's not optimal and bulletproof but easy to implement and cheater will have harder work.