var myOpen1 = app.open(File("Users/Shared/TEST/aa.indd"));
maby that is your problem?
I think you might also need.
Your path is not correct. It's not what Pickory says, because your "Users" folder is not somewhere inside your local folder (which is indicated by the tilde). To use an absolute path, you have to start with a root folder:
.. This assumes the root folder of your Mac is called plain '/'. Can't test right now; it depends on your OS X version (? perhaps on local settings? time of day?), perhaps you have to start with /Volumes, or possibly with /siraj's\ Mac\ mini
Anyway, it's the path that you supply that is wrong, and you should use the right one.
1 person found this helpful
A-ha, you don't even need to know the root path. This also works on Windows(!):
path = '~/../All Users'; alert (Folder(path).getFiles().join('\r'));
i.e., the '~' directs you to your own root folder, and with '..' you navigate one 'level' up (so you are in the "Users" folder) and you can go down again into any other's Users folder.
So you could try this instead:
var myOpen1 = app.open(File("~/../Shared/TEST/aa.indd"));
Hi Jongware and All,
It working fine.
Thanks a lot!!!
But i placed a file in different path(Application folder).
It not works
//var myOpen1 = app.open(File("~/Applications/TEST/aa.indd"));
//var myOpen1 = app.open(File("~/../Applications/TEST/aa.indd"));
//var myOpen1 = app.open(File("Macintosh HD/Applications/TEST/aa.indd"));
Your first one actually does work but you have placed your test… in the system level applications folder…
// This one points to your current user account applications folder
// This is valid you just didn't put the file there…
var myOpen1 = app.open( File( "~/Applications/TEST/aa.indd" ) );
// This one points to your main system level applications folder
// These are apps available to all user accounts…
var myOpen1 = app.open( File( "/Applications/TEST/aa.indd" ) );