Skip to main content
Known Participant
January 14, 2023
Answered

scripting: about remove()

Hello, when I delete a file with remove(), it doesn't go into the recycle bin, but is completely deleted and the file seems to be unrecoverable.

Is there any way to work around this?

thank you.

This topic is closed to new replies. Start a new post to keep the conversation going.
MukaidaCorrect answer
Community Expert
January 14, 2023

ファイルパスを書き換える方法の様ですが、
下記リンクが参考にならないでしょうか。
Solved: Re: Delete Active Document - Recycle Bin - Adobe Support Community - 10824098 

4 replies

Community Expert
January 14, 2023

Adobe JavaScriptのリファレンスによれば、remove()を使用してファイルを削除するとゴミ箱に入らないと記されています。

Translate
Known Participant
January 14, 2023

ありがとうございます! 

remove()以外でファイルを削除する方法はないでしょうか?

Translate
MukaidaCommunity ExpertCorrect answer
Community Expert
January 14, 2023

ファイルパスを書き換える方法の様ですが、
下記リンクが参考にならないでしょうか。
Solved: Re: Delete Active Document - Recycle Bin - Adobe Support Community - 10824098 

Translate