Code: Select all
$docActive = Document.active
If $docActive
File
Save Copy As…
Else
Exit
End
Code: Select all
$docActive = Document.active
If $docActive
File
Save Copy As…
Else
Exit
End
Well, if you want to run "File:Save Copy As…" you should write "File:Save Copy As…". If you break the command across two lines, you end up with a command "File", which doesn't make any sense to anyone.pereelmagne wrote:After opening a document, I want to run the actions File:Save Copy As… However, the macro stops at 'File'. What am I missing?
Code: Select all
$docActive = Document.active
If ! $docActive
New
Else $docActive
File:Save As…
End
What is the $docActive doing after the Else?pereelmagne wrote:Code: Select all
$docActive = Document.active If ! $docActive New Else $docActive File:Save As… End
This one works for me.pereelmagne wrote:After opening a document, I want to run the actions File:Save Copy As… However, the macro stops at 'File'. What am I missing?
Code: Select all
$docActive = Document.active
If $docActive
Save Copy As... # Here '...' is not an ellipse but three fullstops.
Else
Exit
End