|
|
Finder button to auto launch Slideshow
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2002
Location: Paris
Status:
Offline
|
|
The slideshow feature of Windows XP is nice and we didn't have anything that could match it, except with iPhoto, but we had to launch it before. Now in Tiger we have a slideshow feature (a cool one!) embedded into Finder too.
But I miss the way Windows XP handles it better. Yes, you can precisely select files you want to display on Tiger, but the OS is unable to "see" when a folder is full of pictures, and don't show any "Play button" in Finder. We have to manually select pictures with mouse, and ctrl-click (or right-click, or click the Action button) then select "Slideshow". Anyway this is half done, since this feature is correctly implemented into Spotlight search result window... weird.
So I made an AppleScript that fits inside Finder toolbar. It automatically detects and selects all pictures inside the front Finder window, then clicks on the Action button and launches slideshow.
It wasn't that simple because there is no "Slideshow" menu item into Finder File menu, and UI scripting is complex regarded to contextual menus and Finder toolbar, but I found some workaround and managed to make a viable application.
I made a little icon too, which fits well near others Aqua toolbar buttons.
You can download " Slideshow" AppleScript by clicking onto the preview below:
Important Note: You need to put the script somewhere in your HD where people won't see nor touch it: it can work seamlessly only from its Finder toolbar alias. The script must be placed along "Path" and "Action" button menus (these items are expressly required). Finally, UI scripting via System Events must be activated in System "Universal Access" prefpane (check "Enable access for assistive devices" at the bottom), but don't bother about this because the script asks you to do so, and leads you to the right place if needed.
(
Last edited by tokamac; Feb 14, 2006 at 01:08 PM.
)
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Feb 2005
Location: Paris, Fr
Status:
Offline
|
|
This is a wonderful idea : it solves with elegance the inaccessibility of Tiger's diaporama feature.
Alas, in my case, it *should* solve it for the script does not seem to work.
If I try to use it with pictures in my 'pictures' folder, I just get back to the 'users' folder. If I use it with pictures in my desktop folder, all pictures (including pictures that were not selected) just get trashed.
I use a 10.4.1 clean installed Tiger, with french as main language ; quelque affinage serait donc le bienvenu.
Hopefully you'll manage to make your script work as you planned, this would really be great.
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Jan 2001
Location: Australia
Status:
Offline
|
|
Great Idea, doesn't work.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2002
Location: Paris
Status:
Offline
|
|
Originally Posted by kilechki
I use a 10.4.1 clean installed Tiger, with french as main language ; quelque affinage serait donc le bienvenu.
Hopefully you'll manage to make your script work as you planned, this would really be great.
Ce script est dépendant de la langue utilisée, parce qu'il simule certaines touches du clavier, "S" en Anglais (pour " Slideshow") et "D" en Français (pour " Diaporama"). Donc le script anglais ne marche pas sur un système français, et inversement.
Now, translation for everyone:
This script is different according to the system main language, because it simulates keystokes, "S" in English (for " Slideshow") and "D" in French (for " Diaporama"). So this English script doesn't work on a French system, and vice-versa.
But there is also a French version (that you kilechki must use), and this English version that I posted here. Alas for now, the script doesn't work on different languages such as German, Chinese etc... systems.
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: May 2001
Location: uk
Status:
Offline
|
|
hi, thanks!
it works for me, standard tiger, english language.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2002
Location: Paris
Status:
Offline
|
|
Originally Posted by moonmonkey
Great Idea, doesn't work.
Moonmonkey, do you use a Chinese system ?
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: May 2001
Location: uk
Status:
Offline
|
|
btw the finder's slideshow will only show the first hundred pictures in a folder, whilst the spotlight search slideshow shows any number (but lacks the expose like thumbnail view) wierd
|
|
|
|
|
|
|
|
|
Mac Enthusiast
Join Date: Feb 2004
Location: Nagoya
Status:
Offline
|
|
Excellent! very much looking forward to trying this. Wonderful thinking.
|
12" iBook 1.2ghz / 1.2gb
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Jan 2001
Location: Australia
Status:
Offline
|
|
Originally Posted by tokamac
Moonmonkey, do you use a Chinese system ?
No, US English.
When I put it in the toolbar it selected all the images, the jumped to my home directory.
If you can break the dependance on GUI based scripting it would be a lot better.
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Jan 2002
Location: London, UK
Status:
Offline
|
|
Originally Posted by step
btw the finder's slideshow will only show the first hundred pictures in a folder, whilst the spotlight search slideshow shows any number (but lacks the expose like thumbnail view) wierd
Which is a crippling decision (wrt to the Finder). I can understand limiting the index to 100 or so images, but any additional to that should be available on page 2, 3, 4 etc...
I also wish you could change the speed of these slideshows - the current default is too long for my tastes.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2002
Location: Paris
Status:
Offline
|
|
Originally Posted by moonmonkey
No, US English.
When I put it in the toolbar it selected all the images, the jumped to my home directory.
Strange... and you have the "Path" button in the toolbar?
If you can break the dependance on GUI based scripting it would be a lot better.
Well, this is the way I wanted it to be, but Apple made it very hard, practically impossible to achieve:
- There is no "Slideshow" menu item below the Finder File menu of menu bar, meaning it is impossible to call the feature that way,
- Contextual submenu items (with ctrl-click or Action button) cannot directly be called in AS, even with System Events! We can select these particular submenus only with some tricks like keystrokes, page down/up keys and activate them by simulating Enter key press. Difficult, it is.
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Feb 2005
Location: Paris, Fr
Status:
Offline
|
|
The french localized script you provided works wonderfully for me. I can't understand how Apple forgot to associate a regular button in the window toolbar for the slideshow, it is almost the first thing I looked for in Tiger. Also, it is a shame not to have any default keystroke or menu item associated with this action. GUI guidelines must have been lost in some drawer.
So, you cannot be blamed for the lack of elegance of your solution, that eventually does the job fairly well. Hopefully a 10.4.X update will adress this problem.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Jan 2001
Location: Denton, TX
Status:
Offline
|
|
Doesn't seem to work...
NSReceiverEvaluationScriptError: 4
|
"This show is filmed before a live studio audience as soon as someone removes that dead guy!" - Stephen Colbert
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Nov 2001
Location: Dark Side of the Moon
Status:
Offline
|
|
Maybe this: "UI scripting via System Events must be activated in System "Universal Access" prefpane, but don't bother about this because the script asks you to do so, and leads you to the right place if needed."?
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Jan 2001
Location: Denton, TX
Status:
Offline
|
|
Originally Posted by monkeybrain
Maybe this: "UI scripting via System Events must be activated in System "Universal Access" prefpane, but don't bother about this because the script asks you to do so, and leads you to the right place if needed."?
I looked for that option but it doesn't seem to be there.
|
"This show is filmed before a live studio audience as soon as someone removes that dead guy!" - Stephen Colbert
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Jan 2002
Location: London, UK
Status:
Offline
|
|
It probably means the "Enable access for assistive devices" option - English is obviously not this developers first (user) language:
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Jan 2002
Location: London, UK
Status:
Offline
|
|
Looking at the script, my post above is correct. Word of warning - always look at an Applescript before you try running it to make sure it isn't going to do anything nefarious (drag and drop it to Script Editor to open it). This one does what it says on the tin and works.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2002
Location: Paris
Status:
Offline
|
|
Originally Posted by JKT
It probably means the "Enable access for assistive devices" option - English is obviously not this developers first (user) language:
Hi. Yes, this is the good statement in English, thanks! French is indeed my first language, and moreover I didn't even have Tiger at home when I created this AppleScript at first. I edit my initial post so it will be easier to understand.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Jan 2001
Location: Denton, TX
Status:
Offline
|
|
Originally Posted by JKT
It probably means the "Enable access for assistive devices" option - English is obviously not this developers first (user) language:
Yeah, that option is checked in my system preferences. Still no dice...
|
"This show is filmed before a live studio audience as soon as someone removes that dead guy!" - Stephen Colbert
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Jan 2002
Location: London, UK
Status:
Offline
|
|
Make sure you have the script icon in the right location on the toolbar, then try quitting the Finder and re-launching it, then running the script.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2002
Location: Paris
Status:
Offline
|
|
Also try Repair Permissions, it often helps.
|
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Jul 2001
Location: Behind the dryer, looking for a matching sock
Status:
Offline
|
|
Downloaded and it works. Thanks! Great idea.
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Mar 2001
Location: The Netherlands
Status:
Offline
|
|
Beautiful! BTW for dutch you have to change the key commands to "dia" as there is a "dupliceer" and the "diavoorstelling" option.
It there a script genius who can alter it slightly so it would use only those files which are already selected, or all pictures when no files selected..? (Tricky.. It should first filter the selection for viewable pictures only...)
|
I'm-a trying to wonder, wonder, wonder why you, wonder, wonder why you act so.
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Jan 2001
Location: Denton, TX
Status:
Offline
|
|
I'm pretty sure I'm doing everything right but I'm getting the same error. I've tried all the suggestions above. Maybe it's something to do with the extras I have installed in my contextual menus? (Quickimage, Toast, etc)
|
"This show is filmed before a live studio audience as soon as someone removes that dead guy!" - Stephen Colbert
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|