Re: Script Menu in 10.6.2
Re: Script Menu in 10.6.2
- Subject: Re: Script Menu in 10.6.2
- From: Luther Fuller <email@hidden>
- Date: Wed, 03 Feb 2010 15:24:08 -0600
On Feb 3, 2010, at 10:35 AM, Steve Valenti wrote: Is anyone else experiencing problems when placing a script in the script menu. This simple script should display all files in the document folder and allow you to choose one from the list. It works when run from Applescript editor but place it in the script menu and you can’t choose anything… tell application "Finder" set ListOfFiles to name of files of folder (path to documents folder) end tell set ChosenFile to (choose from list ListOfFiles with prompt "Select a File and press Choose" OK button name "Choose")
This works.
(path to documents folder) tell application "Finder" to set ListOfFiles to name of files of the result set ChosenFile to (choose from list ListOfFiles with prompt "Select a File and press Choose" OK button name "Choose")
The problem seems to be putting 'path to ...' inside the tell Finder block. The new question is: Why does this make a difference?
|
_______________________________________________
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