Re: AS in TextExpander with user interaction
Re: AS in TextExpander with user interaction
- Subject: Re: AS in TextExpander with user interaction
- From: Christopher Stone <email@hidden>
- Date: Sun, 06 Sep 2015 13:39:00 -0500
On Sep 06, 2015, at 12:25, Michael Grant < email@hidden> wrote: I'm trying to write an AS snippet that allows the user to insert the contents of an arbitrary text file, but I'm having trouble 1) giving focus to the choose file dialog and then 2) returning focus to the original application for the expansion.
______________________________________________________________________
Hey Michael,
Don't step out of the app-context you're already in, and you don't have to worry about returning to it.
tell application (path to frontmost application as text) choose file end tell
-- Best Regards, Chris
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden