[enhanced script draft] How can I transfer photos from my IPhone to my desktop computer?
Ralf Mardorf
silver.bullet at zoho.com
Sun Aug 18 10:52:17 UTC 2019
Hi,
the draft for a script now contains a delay to 'emulate' manually
mounting.
It now does faster and more reliable unmounting, by taking a look at the
app directories of the mount points, instead of taking care of the apps
installed on the iDevice.
It contains a few other minor changes, too.
However, the delay doesn't help.
In short, it's possible to automatically provide access to the photos
and videos. This does work!
But to get access to the apps' documents, it's required to manually
mount the apps that provide file sharing, instead of trying to mount a
list of all apps, that contains also apps that don't allow file sharing.
Again, manually mounting e.g. 'com.steinberg.cubasis' works...
##############################################################
[rocketmouse at archlinux ~]$ mkdir -p Desktop/ipad && ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documentscom.steinberg.cubasis Desktop/ipad
[rocketmouse at archlinux ~]$ ls Desktop/ipad/
Audio Effects Instruments Midi Mixdown Projects Trash
[rocketmouse at archlinux ~]$ umount Desktop/ipad/ && rmdir Desktop/ipad/
...testing the script with a grotesque long delay...
####################################################
[rocketmouse at archlinux ~]$ IMNT_VE=1 IMNTDLY=2 imnt2/imnt
iMount Version 2019-08-18-1
Ralf Mardorf <silver.bullet at zoho.com>
Usage: imnt
IMNT_SU=sudo # sudo, gksudo etc.
IMNT_VE=1 # verbose 0 or 1
IMNT_FM= # file manager
IMNTDLY=2 # delay for mounting, to work around the house_arrest issue
Push 'Enter' to continue.
Push 'Enter' to confirm.
usbmuxd: active (running) since Sun 2019-08-18 12:14:26 CEST; 5min ago
CPUArchitecture:armv7f
DeviceClass:iPad
ModelNumber:MC770
iOS:9.3.5
UniqueDeviceID:12c6f0748b9d3344303a0b5d775136ac4d4a7341
Please wait.
[snip]
######
........ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documents com.agilepartners.ampkit /tmp/imnt/12c6f0748b9d3344303a0b5d775136ac4d4a7341/ampkit_--_com.agilepartners.ampkit
ERROR: InstallationLookupFailed
The App 'com.agilepartners.ampkit' is either not present on the device, or the 'UIFileSharingEnabled' key is not set in its Info.plist. Starting with iOS 8.3 this key is mandatory to allow access to an app's Documents folder.
........ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documents com.moogmusic.animoog /tmp/imnt/12c6f0748b9d3344303a0b5d775136ac4d4a7341/animoog_--_com.moogmusic.animoog
...is ok for some apps, e.g. 'com.moogmusic.animoog' can be mounted, but this also works without a delay...
###########################################################################################################
[snip]
######
........ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documents com.steinberg.cubasis /tmp/imnt/12c6f0748b9d3344303a0b5d775136ac4d4a7341/cubasis_--_com.steinberg.cubasis
Failed to start AFC service 'com.apple.mobile.house_arrest' on the device.
...for other apps, e.g. 'com.steinberg.cubasis' it fails...
###########################################################
[snip] ^C
######
[rocketmouse at archlinux ~]$ mkdir -p Desktop/ipad && ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documentscom.steinberg.cubasis Desktop/ipad
Failed to start AFC service 'com.apple.mobile.house_arrest' on the device.
[rocketmouse at archlinux ~]$ date
Sun 18 Aug 2019 12:36:22 PM CEST
[rocketmouse at archlinux ~]$ mkdir -p Desktop/ipad && ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documentscom.steinberg.cubasis Desktop/ipad
Failed to start AFC service 'com.apple.mobile.house_arrest' on the device.
[rocketmouse at archlinux ~]$ mkdir -p Desktop/ipad && ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documentscom.steinberg.cubasis Desktop/ipad
Failed to start AFC service 'com.apple.mobile.house_arrest' on the device.
[rocketmouse at archlinux ~]$ IMNTDLY=0.1 imnt2/imnt
[snip]
######
...without unmounting and/or waiting a little bit, manually mounting doesn't work, so I run the script again to unmount...
##########################################################################################################################
rmdir: removing directory, '/tmp/imnt/12c6f0748b9d3344303a0b5d775136ac4d4a7341/0000_--_APPLE_PICS_N_VIDS'
rmdir: removing directory, '/tmp/imnt/12c6f0748b9d3344303a0b5d775136ac4d4a7341'
rmdir: removing directory, '/tmp/imnt'
[rocketmouse at archlinux ~]$ date
Sun 18 Aug 2019 12:43:31 PM CEST
[rocketmouse at archlinux ~]$ mkdir -p Desktop/ipad && ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documentscom.steinberg.cubasis Desktop/ipad
[rocketmouse at archlinux ~]$ ls -hAl Desktop/ipad/
total 0
drwxr-xr-x 5 rocketmouse rocketmouse 170 Feb 8 2019 Audio
drwxr-xr-x 31 rocketmouse rocketmouse 1.1K Feb 8 2019 Effects
drwxr-xr-x 4 rocketmouse rocketmouse 136 Feb 8 2019 Instruments
drwxr-xr-x 6 rocketmouse rocketmouse 204 Feb 8 2019 Midi
drwxr-xr-x 2 rocketmouse rocketmouse 68 Feb 8 2019 Mixdown
drwxr-xr-x 8 rocketmouse rocketmouse 272 Feb 8 2019 Projects
drwxr-xr-x 2 rocketmouse rocketmouse 68 Feb 8 2019 Trash
[rocketmouse at archlinux ~]$ umount Desktop/ipad/ && rmdir Desktop/ipad/
######################################################################
######################################################################
...right after unmounting everything, manually mounting
'com.steinberg.cubasis' works again, without a shutdown, reset or even
unplugging USB.
Regards,
Ralf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imnt
Type: application/x-shellscript
Size: 3999 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20190818/4b5cdbe1/attachment.bin>
More information about the ubuntu-users
mailing list