Re: Spotlight & UI Scripting
Re: Spotlight & UI Scripting
- Subject: Re: Spotlight & UI Scripting
- From: John Baltutis <email@hidden>
- Date: Tue, 28 Sep 2010 15:43:35 -0700
On 9/28/10, Luther Fuller <email@hidden> wrote:
> On Sep 27, 2010, at 3:17 PM, Zack Jarrett wrote:
>
>> The default menu keyboard shortcut for the Spotlight menu is command-Space.
>>Your system may be configured differently. You can set the keyboard shortcut
>>inside of the Spotlight pane of the System Preferences.
>
> Tried it ... and you are right. Your suggestion to use ...
>
> tell application "System Events"
> keystroke space using command down
> end tell
>
> Is a good one, except the user may not have enabled this feature or may have
>set another keyboard shortcut.
>
>> Using a Script Addition (as suggested by Alex) can be a good solution but
>>makes your script less portable. I stick to built-ins unless there's
>>absolutely no other solution.
>
> Scripting Additions are out since the user probably doesn't have it installed
>and license restrictions will probably not let me install it in my application
>bundle.
>
> I have tried to find a preference plist file where I can read the Spotlight
>keyboard shortcut and its status, but I haven't found it, yet.
>
> My script ...
> 1. Mounts the disk of a sparsebundle file
> 2. do shell script "mdutil -E -i on " & pathToDisk
> 3. Drops the Spotlight menu (so the use can see indexing progress)
> 4. Quits.
>
> Inserting item 3 is (should be) easier than explaining to the user what to do
>next and what is happening and why. Some users don't read instructions. (And
>I'm convinced that some don't know how to read.)
Then, it might be time to quit leading them around by their noses. That is,
teach them to fish and stop giving them the fish, already cooked. ;)
_______________________________________________
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