Skip to content, Skip to search

Changes

Script Parameters

26 bytes removed, 25 March
m
Files and Folders: Merge File/folder only input + mention non recordability of multiple files/folders
</source>
You can request for multiple files or folders as well. However multiple files/folders input are not yet macro-recordable.
Example in ImageJ Macro Language:
The exact same code works for the [[Macros|ImageJ1 Macro language]], too.
If you want to select files onlyor folders exclusively, use a <code>style</code> property:
<source lang="python">
#@ File(label="Select a file", style="file") myFile
#@ File(label="Select a directory", style="directory") myDir
print(myFile)
print(myFolder)
</source>
print(myImageFile)
</source>
 
If you want to select a directory instead, use a <code>style</code> property:
 
<source lang="python">
#@ File(label="Select a directory", style="directory") myDir
 
print(myDir)
</source>
Emailconfirmed
88
edits