Re: Displaying 'Get Info'.
Re: Displaying 'Get Info'.
- Subject: Re: Displaying 'Get Info'.
- From: John Stewart <email@hidden>
- Date: Wed, 2 Jul 2003 09:54:53 -0400
On Wednesday, July 2, 2003, at 09:12 AM, email@hidden wrote:
Here is the Code:
tell application "Finder"
select folder named "MacOS X Stuff:Documents:MacSOUP II:Incoming News:"
end tell
tell application "System Events"
tell process "Finder"
click menu item "Get Info" of menu "File" of menu bar 1
end tell
end tell
-----
When executed, the Folder 'Incoming News' is selected; but, the 'Get
Info' Window is not displayed.
If I manually click on the Window displaying the 'MacSOUP' Contents,
which then brings 'Finder' [and its related Menu Bar of Menus] to the
foreground, and then click anywhere along the Menu Bar, only then will
the 'Get Info' Window for 'Incoming News' be displayed.
-----
Once placed 'activate' after the 'tell process "Finder"'.
Placed 'click menu bar 1' before 'click menu item "Get Info" of menu
"file" of menu bar 1'.
Even tried 'keystroke "i" with command down' in place of 'click menu
item "Get .... bar 1'.
Even moved the 'end tell' of 'tell application "Finder"' after the end
of the Code.
Nothing worked.
-----
Any suggestion(s) would be appreciated.
Thank you.
--
Samuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
Suggestion - check the Finder's dictionary before scripting the GUI -
tell application "Finder" to open information window of ("MacOS X
Stuff:Documents:MacSOUP II:Incoming
News:" as alias) -- all on one line
In general it's probably a good idea to check the dictionary of any
application you are working with (if it has one) before resorting to
GUI scripting. As above it will usually result in a much easier method
of accomplishing what you desire.
John
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.