finder

How does the DropBox Mac client work?

ε祈祈猫儿з 提交于 2020-01-11 17:16:09
问题 I've been looking at the DropBox Mac client and I'm currently researching implementing a similar interface for a different service. How exactly do they interface with finder like this? I highly doubt these objects represented in the folder are actual documents downloaded on every load? They must dynamically download as they are needed. So how can you display these items in finder without having actual file system objects? Does anyone know how this is achieved in Mac OS X? Or any pointer's to

Batch Renaming Folders in AppleScript, Will Only Change Names of Every Other Folder

时光毁灭记忆、已成空白 提交于 2020-01-06 15:02:14
问题 I am trying to write a script that renames folders in subfolders. In other words, the taxonomy will go from: Directory/Company X/1 Directory/Company X/2 Directory/Company X/3 Directory/Company X/4 Directory/Company X/5 Directory/Company X/6 Directory/Company X/7 Directory/Company X/8 Directory/Company X/9 Directory/Company X/10 Directory/Company X/info to Directory/Company X/Project 1_1 Directory/Company X/Project 2_2 Directory/Company X/Project 3_3 etc.. So far I have: tell application

How to reduce Xcode project file size

 ̄綄美尐妖づ 提交于 2020-01-06 13:13:27
问题 So I am trying to submit my WWDC scholarship app, however the file size limit is 100mb, and mine is currently 132mb. I have spent the past few hours reducing the size of the images, and compressing them, but I only saved about 10mb... So now I am trying to figure out what is taking up all of the space, and what I can delete to get it under 100mb. I noticed that when I go into the 'Developer' folder and right click on my project and tap 'Get info', it shows that the file is 132mb, however if I

Select Image in Selenium 2.9

∥☆過路亽.° 提交于 2020-01-06 03:33:07
问题 I'm trying to use RSpec to try and automate testing for post-maintenance weekends here where I'm interning at. I'm using Selenium WebDriver 2.9.0 to get a skelton going and then adding in personalized code. What I'm currently stuck on is trying to have the WebDriver click on an image that will then navigate to the correct HTML but I'm currently unable to do so. Here's what I have so far... it "can go to Ultratime" do @ie_driver.find_element(:link, "My Resources").click wait.until { @ie_driver

Add an item in Finder's contextual menu with Cocoa

心不动则不痛 提交于 2020-01-05 08:46:23
问题 In Cocoa on Mac, I would like to add a menu item in the Finder's popup menu that comes when I right-click on a file or a folder, and having this item pointing to a function in my app. How can I achieve this ? Thanks ! 回答1: A good place to start is CocoaDev: StandardService. It outlines what you are trying to accomplish and they give some source code to follow such as the MakingServices example. 2015 Update: As of Yosemite, Apple includes an extension called Finder Sync which allows you to

AppleScript access Network Folder

孤者浪人 提交于 2020-01-04 12:49:20
问题 I'm trying to make a backup of a folder on our network to my Desktop but I'm not sure how to access the folder on the shared network. My code is as follows: on run {input, parameters} set desktopFolder to "Macintosh HD:Users:James:Desktop:App Backups:" set todayDate to do shell script "date '+%Y.%m.%d'" set newFolderName to "Backup " & todayDate set destinationFolder to desktopFolder & newFolderName set sourceFolder to "smb://svr01/IT_Department/Design/_team/James/App" tell application

AppleScript access Network Folder

让人想犯罪 __ 提交于 2020-01-04 12:49:07
问题 I'm trying to make a backup of a folder on our network to my Desktop but I'm not sure how to access the folder on the shared network. My code is as follows: on run {input, parameters} set desktopFolder to "Macintosh HD:Users:James:Desktop:App Backups:" set todayDate to do shell script "date '+%Y.%m.%d'" set newFolderName to "Backup " & todayDate set destinationFolder to desktopFolder & newFolderName set sourceFolder to "smb://svr01/IT_Department/Design/_team/James/App" tell application

Is there a way to programmatically connect to a remote server from Cocoa?

六眼飞鱼酱① 提交于 2020-01-04 06:50:21
问题 Is there an Coca/obj-C API call to mimic the "Connect to Server" action in Finder? It's possible with Automater, so it seems like Finder has a hook somewhere. 回答1: Turns out there's an old Carbon function (can't find a Cocoa equivalent) called FSMountServerVolumeSync which does what I was looking for. You can supply and smb:// URL and login credentials. File Manager Reference OSStatus FSMountServerVolumeSync ( CFURLRef url, CFURLRef mountDir, CFStringRef user, CFStringRef password,

Grails using dynamic finders with 3x+ logical arguments

主宰稳场 提交于 2019-12-31 01:58:11
问题 I sucessfully managed to search in the database using this dynamic finder from Hibernate: def temp = User.findByNameAndStreet("name", "street") Although, i need a tripple logical argument like this: def temp = User.findByNameAndStreetAndCity("name", "street", "city") Any simple way to do it ? 回答1: The Grails dynamic finders don't support more than two predicates. This is because it's not clear whether User.findByNameAndAgeOrGender('foo', 12, 'm') means this: (name == 'foo' && age == 12) ||

OS X Finder Sync Extension

ぐ巨炮叔叔 提交于 2019-12-30 10:27:29
问题 I am not able to create a simple Finder Sync Extension. I have created a new OS X project and added the Finder Sync Extension target and I ran the extension attached to finder. The code appears to be running the init methods and the toolbar items methods are getting called but nothing is displaying in finder. The terminal is showing this when it runs 2015-04-20 12:45:52.700 pcssyncextension[3196:62451] Failed to connect (colorGridView) outlet from (NSApplication) to (NSColorPickerGridView):