AppleScript "Import" Command

Discussions about Expression Media

AppleScript "Import" Command

Postby Dave Heap » Sat Jun 25, 2011 2:51 am

Has anyone had any experience with the AppleScript "Import" command in EM2?

From the EM2 AppleScript dictionary.
import v : import a single media file to a catalog
import file specification : file specification
[at location specifier] : the location to import
→ specifier : to the new object(s)


Try as I may, I cannot get the correct form of "file specification". I've tried every form I know of in AppleScript.

Can anyone provide me a worked example?
Dave Heap
 
Posts: 82
Joined: Sat Jun 05, 2010 10:28 am
Location: Australia

Re: AppleScript "Import" Command

Postby Daniel2 » Mon Aug 01, 2011 8:30 pm

try this:

tell window 1 of application "Expression Media 2"
set theFile to choose file
set NewMedia to import theFile at beginning
end tell
User avatar
Daniel2
 
Posts: 53
Joined: Fri May 28, 2010 5:33 pm
Location: France


Return to Expression Media



Who is online

Users browsing this forum: No registered users and 1 guest