Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Just a little help with a calc's syntax

Featured Replies

Howdy, all:

I'm using this ApplesScript calc to create a folder on the desktop of my Mac:

"set hfs_desktop to (path to desktop folder) as string¶

set hfs_subfolder to hfs_desktop & \"" & DateFormatter__CFpub ( Get ( CurrentDate ) ; "yyyy-mm-dd" ) & " Job Chop-Chop Backup\"¶

set posix_subfolder to quoted form of posix path of hfs_subfolder¶

do shell script \"mkdir -p \" & posix_subfolder"

 

...but I'm having a devil of a time trying to amend its syntax so the folder name is changed from 2016-03-11 Job Chop-Chop Backup to Job Chop-Chop Backup 2016-03-11. Admittedly, I'm a little confused with the escapes for the quotation marks--no matter how I reposition them I just can't get them right.

TIA for your help!

Rich

 

ON EDIT:

 

Nailed it: 

"set hfs_desktop to (path to desktop folder) as string¶

set hfs_subfolder to hfs_desktop & \"" & "Job Chop-Chop! Backup " & DateFormatter__CFpub ( Get ( CurrentDate ) ; "yyyy-mm-dd" ) & "\"¶

set posix_subfolder to quoted form of posix path of hfs_subfolder¶

do shell script \"mkdir -p \" & posix_subfolder"

Edited by WF7A

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.