New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Ľ Advice and insight from world-class Apple enthusiasts Ľ Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.4 - Applescript newbie


Post Reply New Thread Subscribe

 
Thread Tools
revilo

 
Member Since: Sep 25, 2008
Posts: 13
revilo is on a distinguished road

revilo is offline
I'm using AppleScript for the first time , to mark and manipulate images in a folder in Finder . I'm running two scripts from Spark using hotkeys . The first script to add label colour works fine , the second script to rotate the image only works when I run the script from the script edit window and choose the file from a drop down menu - when I click on the image icon and use the hotkey it simply de-highlights it. Thanks for any help on this.
QUOTE Thanks
scathe

 
scathe's Avatar
 
Member Since: Jan 12, 2009
Location: Prague, Czech Republic
Posts: 1,096
scathe is a jewel in the roughscathe is a jewel in the rough
Mac Specs: 2,4Ghz 15" unibody

scathe is offline
So the seconsd script also highlights/dehighlights? I'm a little unclear as to what exactly you are doing

Sounds like the script wouldn't rotate whatever you have selected, since even in script editor you still get a drop down

You can try exporting the script as an app, but I think you need to alter your script so that is uses the highligted object and not a new input
QUOTE Thanks
revilo

 
Member Since: Sep 25, 2008
Posts: 13
revilo is on a distinguished road

revilo is offline
Sorry , highlight was confusing . I'm using one script to change the label on the image to red , or back to no colour , using a two-key combination. I open the folder of images , click on an image to select it , click shift-x and the label changes to red . When I run the Rotate script from the script editor in Spark , it asks me to choose my folder ,then image file ,from menus and then it rotates the image ,- but when I open the folder , click on an image to select , and use my hotkeys shift-A, it just de-selects the image.
QUOTE Thanks
scathe

 
scathe's Avatar
 
Member Since: Jan 12, 2009
Location: Prague, Czech Republic
Posts: 1,096
scathe is a jewel in the roughscathe is a jewel in the rough
Mac Specs: 2,4Ghz 15" unibody

scathe is offline
still, looks like the script doesn't work with a currently selected item, so it wouldn't rotate whatever you select
QUOTE Thanks

Post Reply New Thread Subscribe


« Small. little, irritating stuff | Safari »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Logic Express and Applescript via GUI Scripting albertaurus Music, Audio, and Podcasting 0 04-09-2009 01:13 PM
silly question from a newbie (AppleScript) quariguasi OS X - Development and Darwin 1 02-12-2009 03:14 AM
Run applescript on start-up slugzzz Running Windows (or anything else) on your Mac 3 09-11-2007 01:51 AM
[ANN] New comprehensive AppleScript book hanaan OS X - Development and Darwin 0 11-06-2004 07:28 PM
Looking for AppleScript help tommyabroad OS X - Operating System 2 04-14-2004 12:51 AM

All times are GMT -4. The time now is 06:52 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?