Jump to content

File action connected to script

Recommended Posts

Hi, i need to do this. 

Call a file action on a folder ..than perform a script that parse all directory and execute some renaming .. like append date on each pdf.

I can't find how to get data like folder name from file action.. is it possibile ? 

Share this post

Link to post

File Actions pass the file paths to scripts as command-line arguments. So you access them as $1, $2 or sys.argv or ARGV[n] depending on which language you’re using.

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...