Thursday, March 26, 2009

AppleScript: Exploring the power of Folder Actions, part III

AppleScript: Exploring the power of Folder Actions, part III

Filed under: , ,

So far in this AppleScript feature we've covered what folder actions are and how to create them. In this AppleScript post, I'm going to tell you how to create your own custom scripts and add them to your folder actions list.

If you work with file permissions a lot, then you know how crazy it can get when you need to change a ton of files to their correct permission types. With this AppleScript folder action, you can easily change the permissions just by dragging and dropping files in their correct folder.

Creating the Script
To get started, we'll open the Script Editor (located in /Applications/Utilities). Once you have the editor opened, copy/paste the following script:

on adding folder items to this_folder after receiving added_items
tell application "Finder"
set fold_name to the name of this_folder
try
repeat with i from 1 to number of items in added_items
set new_item to item i of added_items
set the item_path to the quoted form of the POSIX path of new_item
do shell script ("/bin/chmod -R +r " & item_path)
end repeat
end try
end tell
end adding folder items to

This script will change the dropped files to a permission of "0644" meaning that everyone can read the file. For information about chmod and command line permissions strings, visit the Wikipedia page.

Continue reading to learn more about this AppleScript and folder actions.

Continue reading AppleScript: Exploring the power of Folder Actions, part III

TUAWAppleScript: Exploring the power of Folder Actions, part III originally appeared on The Unofficial Apple Weblog (TUAW) on Thu, 26 Mar 2009 08:00:00 EST. Please see our terms for use of feeds.

Read | Permalink | Email this | Comments

Apple drops to number two in reliability

Filed under: , ,

RescueCom is a company that provides tech support and help from a 1-800 number, and they've released the latest version of their computer reliability report. This thing is actually pretty well done -- it examines just which brands and makes of computers are getting the most support calls, and then compares it to the average US market share for each brand. For example, if XYZ brand computers are getting a lot of calls, but they're also selling like hotcakes, it won't rate quite as high as ABC brand, which is only selling a few computers, almost all of which are breaking down.

There's bad news, however, for Apple, in this quarter's report: they've fallen to spot number two. For the overall year of 2008, Apple reigned supreme in terms of reliability. But in the first quarter of this year, Asus and IBM's Lenovo have had their numbers rise above -- both of their shares of the US market are smaller than Apple's 6%, according to this report, but Apple's 2% of calls to RescueCom still means Asus and IBM/Lenovo have them beat in overall reliability. Unfortunately, they don't show us the fun side of the chart: HP/Compaq end up in the fifth spot, but their 17.9% of all the calls to RescueCom is only the fifth most reliable, not the worst.

Apple still probably doesn't have too much to worry about -- as Wired notes, these are only quarterly scores, and don't forget that this is the quarter in which many people were still learning how to use their iPhones, iPod touches, and the App Store. But this might be an early sign that as Apple grows, it'll be tougher for them to guarantee reliability in their products.

TUAWApple drops to number two in reliability originally appeared on The Unofficial Apple Weblog (TUAW) on Thu, 26 Mar 2009 07:00:00 EST. Please see our terms for use of feeds.

Read | Permalink | Email this | Comments

iPhone 3.0 Wish List: Accessory-Powered Apps We Want
Forget copy-and-paste. The real seed of innovation planted in the upcoming iPhone 3.0 upgrade is the OS's ability to interact with special accessories via Bluetooth and the dock connector.

Apple filing details safe touch-screen navigation system
An interesting but at times erratic patent filing from Apple published for the first time this week describes a proprietary in-car navigation system focused on maintaining driver safety while a vehicle is in motion.


AppleScript: Exploring the power of Folder Actions, part III

Filed under: , ,

So far in this AppleScript feature we've covered what folder actions are and how to create them. In this AppleScript post, I'm going to tell you how to create your own custom scripts and add them to your folder actions list.

If you work with file permissions a lot, then you know how crazy it can get when you need to change a ton of files to their correct permission types. With this AppleScript folder action, you can easily change the permissions just by dragging and dropping files in their correct folder.

Creating the Script
To get started, we'll open the Script Editor (located in /Applications/Utilities). Once you have the editor opened, copy/paste the following script:

on adding folder items to this_folder after receiving added_items
tell application "Finder"
set fold_name to the name of this_folder
try
repeat with i from 1 to number of items in added_items
set new_item to item i of added_items
set the item_path to the quoted form of the POSIX path of new_item
do shell script ("/bin/chmod -R +r " & item_path)
end repeat
end try
end tell
end adding folder items to

This script will change the dropped files to a permission of "0644" meaning that everyone can read the file. For information about chmod and command line permissions strings, visit the Wikipedia page.

Continue reading to learn more about this AppleScript and folder actions.

Continue reading AppleScript: Exploring the power of Folder Actions, part III

TUAWAppleScript: Exploring the power of Folder Actions, part III originally appeared on The Unofficial Apple Weblog (TUAW) on Thu, 26 Mar 2009 08:00:00 EST. Please see our terms for use of feeds.

Read | Permalink | Email this | Comments

Apple drops to number two in reliability

Filed under: , ,

RescueCom is a company that provides tech support and help from a 1-800 number, and they've released the latest version of their computer reliability report. This thing is actually pretty well done -- it examines just which brands and makes of computers are getting the most support calls, and then compares it to the average US market share for each brand. For example, if XYZ brand computers are getting a lot of calls, but they're also selling like hotcakes, it won't rate quite as high as ABC brand, which is only selling a few computers, almost all of which are breaking down.

There's bad news, however, for Apple, in this quarter's report: they've fallen to spot number two. For the overall year of 2008, Apple reigned supreme in terms of reliability. But in the first quarter of this year, Asus and IBM's Lenovo have had their numbers rise above -- both of their shares of the US market are smaller than Apple's 6%, according to this report, but Apple's 2% of calls to RescueCom still means Asus and IBM/Lenovo have them beat in overall reliability. Unfortunately, they don't show us the fun side of the chart: HP/Compaq end up in the fifth spot, but their 17.9% of all the calls to RescueCom is only the fifth most reliable, not the worst.

Apple still probably doesn't have too much to worry about -- as Wired notes, these are only quarterly scores, and don't forget that this is the quarter in which many people were still learning how to use their iPhones, iPod touches, and the App Store. But this might be an early sign that as Apple grows, it'll be tougher for them to guarantee reliability in their products.

TUAWApple drops to number two in reliability originally appeared on The Unofficial Apple Weblog (TUAW) on Thu, 26 Mar 2009 07:00:00 EST. Please see our terms for use of feeds.

Read | Permalink | Email this | Comments

iPhone 3.0 Wish List: Accessory-Powered Apps We Want
Forget copy-and-paste. The real seed of innovation planted in the upcoming iPhone 3.0 upgrade is the OS's ability to interact with special accessories via Bluetooth and the dock connector.

Apple filing details safe touch-screen navigation system
An interesting but at times erratic patent filing from Apple published for the first time this week describes a proprietary in-car navigation system focused on maintaining driver safety while a vehicle is in motion.

No comments:

Post a Comment