Answered
This topic has been closed for replies.
- ( function()
- {
- var myFile = File.openDialog
- (
- "Load a file", // Message at top of the window
- function(file) // File filter function
- {
- if( file.name.match(/(\.jpg$)|(\.psd$)|(\.tif$)|(\.pdf$)/i) )
- { return true }
- } ,
- false // Multi select
- );
- if( myFile == null )
- {
- alert("User canceled. No File loaded.");
- return
- };
- else
- {
- alert( "Selected File Name:"+"|r"+myFile.name )
- };
- if(app.selection.length == 0){ return };
- var sel = app.selection;
- for(var n=0;n<sel.length;n++)
- {
- if( sel
.constructor.name == "Rectangle" ) - {
- sel
.place( myFile ); - }
- }
- }() )
Sign up
Already have an account? Login
To post, reply, or follow discussions, please sign in with your Adobe ID.
Sign inSign in to Adobe Community
To post, reply, or follow discussions, please sign in with your Adobe ID.
Sign inEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.