
Write a simple AppleScript (or other OSX app)
- or -
Post a project like this1551
£25(approx. $33)
- Posted:
- Proposals: 1
- Remote
- #3115786
- PRE-FUNDED
- Awarded
Description
Experience Level: Entry
Estimated project duration: 1 day or less
Our business has its own web based CRM (we built it from scratch - php, mysql, html, js). When viewing a customer we want to be able to click on a link (href) that will open their customer folder in Finder on our Macs.
We use Dropbox so all our customer's folders are in the same location on each Mac. There are three aspects to this project:
The first is the apple script that takes the passed URL ("4pmLocal://Clients/Sample Client Folder"), extracts the folder path ("Clients/Sample Client Folder") and passes it to Finder to be opened. From initial tests the URL will include hex for spaces / special characters (e.g. "Sample%20Client%20Folder") which will need to be replaced with the original values before being passed to Finder. I wrote the script myself but not being proficient in apple script struggled to replace the hex values.
The second is registering the URI "4pmLocal" (Package Contents > Info.plist). Again I had this working but after testing recognised we need to ensure that the "4pmLocal" URI remains registered after restarts etc... and also we need to have a defined method to remove the URI should we need to. In my testing I ended up with quite a few scripts all using the same test URI and ultimately it stopped working, this is why I would like someone more experienced in OSX development to code this.
Lastly, during my tests, when I clicked the link, Safari would prompt 'Do you want to allow this page to open "4pmLocal"'. The options are 'Cancel' and 'Allow'. Clicking 'Allow' would open the path in Finder as expected. We need to ensure this prompt only comes up once per browser session (we rarely close our browsers so this would in reality mean we'd rarely see the prompt) or better, somehow pre-allow this action in Safari settings so we're not prompted at all. Using a different browser is not an option.
Given i've achieved most of the above in little over 30min with a few google searches (and no previous knowledge of apple script), I believe for someone who knows what they are doing this is about 20min work. I have based the budget on it taking about 30min.
If the developer shows they can achieve this task quickly and on budget we have a few other projects we would like to get completed in the next few weeks.
We use Dropbox so all our customer's folders are in the same location on each Mac. There are three aspects to this project:
The first is the apple script that takes the passed URL ("4pmLocal://Clients/Sample Client Folder"), extracts the folder path ("Clients/Sample Client Folder") and passes it to Finder to be opened. From initial tests the URL will include hex for spaces / special characters (e.g. "Sample%20Client%20Folder") which will need to be replaced with the original values before being passed to Finder. I wrote the script myself but not being proficient in apple script struggled to replace the hex values.
The second is registering the URI "4pmLocal" (Package Contents > Info.plist). Again I had this working but after testing recognised we need to ensure that the "4pmLocal" URI remains registered after restarts etc... and also we need to have a defined method to remove the URI should we need to. In my testing I ended up with quite a few scripts all using the same test URI and ultimately it stopped working, this is why I would like someone more experienced in OSX development to code this.
Lastly, during my tests, when I clicked the link, Safari would prompt 'Do you want to allow this page to open "4pmLocal"'. The options are 'Cancel' and 'Allow'. Clicking 'Allow' would open the path in Finder as expected. We need to ensure this prompt only comes up once per browser session (we rarely close our browsers so this would in reality mean we'd rarely see the prompt) or better, somehow pre-allow this action in Safari settings so we're not prompted at all. Using a different browser is not an option.
Given i've achieved most of the above in little over 30min with a few google searches (and no previous knowledge of apple script), I believe for someone who knows what they are doing this is about 20min work. I have based the budget on it taking about 30min.
If the developer shows they can achieve this task quickly and on budget we have a few other projects we would like to get completed in the next few weeks.

Tim H.
97% (14)Projects Completed
19
Freelancers worked with
16
Projects awarded
54%
Last project
31 Mar 2021
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies