Re: Issue with process names
Re: Issue with process names
- Subject: Re: Issue with process names
- From: Joe <email@hidden>
- Date: Mon, 06 Feb 2012 09:55:56 -0800
On Feb 5, 2012, at 8:50 PM, Christopher Stone wrote: One possible way around the issue:
tell application "Finder" set bundleID to bundle identifier of processes whose has scripting terminology is true ¬ and name contains "BBEdit" end tell
using terms from application "BBEdit"
if bundleID is not {} then set bundleID to item 1 of bundleID
tell application id bundleID set newDoc to make new text document set text of newDoc to "This is a test!" end tell
else # Fail return false end if
end using terms from
You've rebooted and tested again to confirm your results?
Please take the time to file a bug if you haven't already done so.
I haven't monkeyed with tell application id bundle-id for quite some time, and it amazes me that it's necessary to include using terms from to make it compile the app's terminology. I would think by now it would be a fully synonymous with tell app "app-name".
Hi Chris,
I played around with this after you posted.
The following seems to work OK without "using terms from"
OS X 10.7.3
tell application "Finder" set bundleID to bundle identifier of processes whose has scripting terminology is true ¬ and name contains "BBEdit" end tell
set mybbedit to item 1 of bundleID tell application id mybbedit activate make new document end tell
Perhaps I'm reading in too much. I looked at Sal's site for the terminology to get the above,
Joe |
_______________________________________________
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